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 split it on the = > because i also must remove the '' or they will be part of the value > being assigned: > > DBUS_SESSION_BUS_ADDRESS='unix:abstract=/tmp/dbus-znQbMX8oPo,guid=a357144570b6ed36175720bb4b2d7b00' > DBUS_SESSION_BUS_PID=5181 > > yes, i could create a sed expression that does remove the '' in this > case, but i would not trust this to work in every case.
If you run sed on the above and then send it to eval, the quotes should be handled correctly: eval (dbus-whatever|sed -e "blah blah blah") Seems that with the setenv issue mentioned below removed, a sed script like this should do the trick: sed -e "s/set *\([^=]*\)=/set \1 /" This will replace the first '=' in a call to set with a space. > > setenv does not work btw because it sets a global variable wheras i want > to set an universal one. (btw i think the point of setenv vs set in csh > is that setenv produces an exported variable, regardless of being global > or something else) Absolutley. That's a bug/typo in the setenv script. Updated. > > 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/ > -- Axel ------------------------------------------------------------------------- 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