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=5181 > dbus-launch --csh-syntax setenv DBUS_SESSION_BUS_ADDRESS 'unix:abstract=/tmp/dbus-Huq0pyyARU,guid=b557144594e98737d2edfbb64a8e6600' set DBUS_SESSION_BUS_PID=5193 there are probably others. the dbus-launch one is the one i am fighting with right now, because i can't think of a safe way to turn this into something fish would understand: dbus-launch | sed -e "s/=/ /" | while read i; eval "set -Ux $i"; echo $i; end dbus-launch | sed -e "s/=/ /" | while read i j; set -Ux $i $j; echo $i $j; end > dbus-launch --fish-syntax dbus-launchCouldn't exec --fish-syntax: No such file or directory (that's to bad :-| ) even with the existance of a setenv function for csh compatibility this does not help because set still works differently, and fish does the quoting in a different way. so does anyone have a good suggestion how to feed the above output into fish variables? 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