Re: [Fish-users] problems with setting variables from commands

2006-10-01 Thread Axel Liljencrantz
On 9/28/06, Martin Bähr <[EMAIL PROTECTED]> wrote: > On Thu, Sep 28, 2006 at 02:04:19PM +0200, Axel Liljencrantz wrote: > > In what ways do fish and csh quoting differ? > > the quoting difference was not meant in reference to csh but to the fact > that i can neither just eval the following nor spli

Re: [Fish-users] problems with setting variables from commands

2006-09-28 Thread Martin Bähr
On Thu, Sep 28, 2006 at 07:34:08PM -0400, Philip Ganchev wrote: > >except that this is not enough to cover the whole range of legal sh or > >csh syntax that we could possibly be subjected with here. > >(the value could be in "" instead of '', and i have no idea what else) > So we have to look at th

Re: [Fish-users] problems with setting variables from commands

2006-09-28 Thread Martin Bähr
On Thu, Sep 28, 2006 at 05:24:33PM -0400, Philip Ganchev wrote: > Did you mean something like: > > #! fish > command dbus-launch | sed -r 's/=/ /' | while read i j >set $i (echo $j | sed -r 's/^\'//; s/\'$//; s/[^:]*://') > end > echo $DBUS_SESSION_BUS_ADDRESS | tr , '\n' | tr = ' ' | whil

Re: [Fish-users] problems with setting variables from commands

2006-09-28 Thread Martin Bähr
On Thu, Sep 28, 2006 at 02:04:19PM +0200, Axel Liljencrantz wrote: > In what ways do fish and csh quoting differ? the quoting difference was not meant in reference to csh but to the fact that i can neither just eval the following nor split it on the = because i also must remove the '' or they will

[Fish-users] problems with setting variables from commands

2006-09-22 Thread Martin Bähr
hi, some programs provide a feature to output variable names and values to be set for the surrounding shell: > resize COLUMNS=80; LINES=24; export COLUMNS LINES; > dbus-launch DBUS_SESSION_BUS_ADDRESS='unix:abstract=/tmp/dbus-znQbMX8oPo,guid=a357144570b6ed36175720bb4b2d7b00' DBUS_SESSION_BUS_PID