On Thu, May 06, 2010 at 09:40:08AM +1000, Ronny Haryanto wrote: > Thanks for your help. I've tried restarting, moving .config/fish to > .config/fish-backup, still no good. It keeps reverting to the old > PATH. I'm really lost. > > I was able to set and export other universal array variables just > fine. It's just PATH that seems to be a special case. > > ro...@iron ~> set -Ux PATH /opt/subversion/bin /opt/postgresql/bin > /bin /usr/bin /usr/sbin /sbin /usr/local/sbin /usr/local/bin > /Users/ronny/bin > ro...@iron ~> echo $PATH > /usr/bin /bin /usr/sbin /sbin /usr/local/Cellar/fish/1.23.1/bin > /usr/X11R6/bin /usr/local/bin
one issue i remember was that all the variables fish inherits from its environment are not universal variables, but global i think. so whenever you start fish, you will always have a global PATH variable unless you delete that. do you have a command to delete a global PATH in your scripts? alternatively consider setting the PATH outside of fish, in /etc/profile or /etc/environment or something like that (depends on your operating system). that way you will get your desired PATH in any shell. greetings, martin. -- cooperative communication with sTeam - caudium, pike, roxen and unix searching contract jobs: programming, training and administration - anywhere -- pike programmer working in china community.gotpike.org foresight developer (open-steam|caudium).org foresightlinux.org unix sysadmin iaeste.at realss.com Martin Bähr http://www.iaeste.or.at/~mbaehr/ is.schon.org ------------------------------------------------------------------------------ _______________________________________________ Fish-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fish-users
