[prev in list] [next in list] [prev in thread] [next in thread]
List: 9fans
Subject: Re: [9fans] rc script question
From: dexen deVries <dexen.devries () gmail ! com>
Date: 2013-02-27 16:06:35
Message-ID: 12629769.4igoszc5pW () coil
[Download RAW message or body]
On Wednesday 27 of February 2013 15:41:58 Steve Simon wrote:
> This i did not expect
> echo a b c | rc -c 'echo @ $(2-) @'
> @ @
rc -c 'shift; echo @ $* @' `{echo a b c}
surprisingly, * can be assigned to.
echo a b c | rc -c '*=`{read}; shift; echo @ $* @'
echo a b c | rc -c '*=`{read}; echo @ $*(2-) @'
--
dexen deVries
[[[↓][→]]]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic