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 = ' ' | while read i j
>        set $i $j
> end

yes, that's what i meant.
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)

and for that reason i don't want to play games with regexps but am
hoping there is a way to come up with a more reliable solution.

greetings, martin.
-- 
cooperative communication with sTeam      -     caudium, pike, roxen and unix
offering: programming, training and administration   -  anywhere in the world
--
pike programmer   travelling and working in europe             open-steam.org
unix system-      bahai.or.at                        iaeste.(tuwien.ac|or).at
administrator     (caudium|gotpike).org                          is.schon.org
Martin Bähr       http://www.iaeste.or.at/~mbaehr/

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to