On 8/28/06, Axel Liljencrantz <[EMAIL PROTECTED]> wrote: > On 8/28/06, Martin Bähr <[EMAIL PROTECTED]> wrote: > > with screen and hibernate the shells on my notebook tend to run forever, > > but with the upgrades due to the fast paced development i find myself > > having a hard time tracking which shells are still running which version > > of fish. > > > > a variable FISH_VERSION that contains the version number would be nice > > for this. (bash, zsh and tcsh have $BASH_VERSION, $ZSH_VERSION and $tcsh) > > According to fish convention (borrowed from csh, but sometimes used on > Bourne shells as well), exported variables are in upper case, > unexported in lower case, so that should be $fish_version. Also, I > noticed that csh uses the name $version, so to keep compatibility with > at least one shell class, that might be a better choice. Other than > that, it sounds good to me.
[EMAIL PROTECTED] /m/h/a/c/c/fish_current> make fish make: `fish' is up to date. [EMAIL PROTECTED] /m/h/a/c/c/fish_current> ./fish Welcome to fish, the friendly interactive shell Type help for instructions on how to use fish [EMAIL PROTECTED] /m/h/a/c/c/fish_current> echo $version 1.21.11 [EMAIL PROTECTED] /m/h/a/c/c/fish_current> set version 1.21.12 set: Tried to change the read-only variable "version" > > > > > 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 > -- Axel ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Fish-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fish-users
