On Wed, Jun 03, 2009 at 04:22:17PM +0300, Beni Cherniavsky wrote: > > in other words, each scope seems to have its own namespace. > At the very least, we need clear documentation on this area. > And an obvious way to see a variable's status (with its value in each > scope it exists in!).
indeed, that would be helpful, especially considering that most shell users are not programmers and may have hard time understading what's going on. and even those who do understand don't think about it in a shell context. > > and really there is no easy way to solve that because even if you have a > > universal variable you need a way to override it in a specific shell. > Perhaps a note/warning for any non-obvious set in interactive mode? that could be helpful. a warning when a new variable is set but is known to be hidden, or when it hides an existing variable too... > Does fish have a way to easily distinguish ? > > what might be nice is to have all vaiables that exist before fish is > > started be universal to begin with, which should work right in most > > cases because you can set a new value in every shell and you'd have to > > specifically change the universal variable. > > > > at least, i can't think of a case where this would cause problems. > I'm not sure I'm following. > Making all inherited envvars universal would: > 1. Prevent 2 fishes from inheriting different values. E.g. running > fish in 2 different terminals would break TERM for one of them. You > can fix it manually, but this is not how envvars are supposed to work. > 2. Make any variable once inherited persistent for future runs. ah, thank you, see, i could not think of any problems, but you just did. yes, that is not going to work. so scrap this idea too. some way to override global variables with universal ones would still be nice... > P.S. thank to martin for catching me forgetting "reply to all" for the > 10th time. i'd rather catch you 100 times forgetting "reply to all" than catch you even just once sending a private mail to the list. carry on... greetings, martin. -- cooperative communication with sTeam - caudium, pike, roxen and unix offering: programming, training and administration - anywhere in the world -- pike programmer working in china community.gotpike.org unix system- iaeste.(tuwien.ac|or).at open-steam.org administrator caudium.org is.schon.org Martin Bähr http://www.iaeste.or.at/~mbaehr/ ------------------------------------------------------------------------------ OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to deploy the next generation of Solaris that includes the latest innovations from Sun and the OpenSource community. Download a copy and enjoy capabilities such as Networking, Storage and Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get _______________________________________________ Fish-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fish-users
