hi all, if anyone could help me out here, may i know what is the shell different between opensuse 10.2 and 11.
when i type #man exit in both of them, one show bash builtin and another one show tcl builtin, and one of my user claimed that its because of the “exit” command in opensuse 10.2 that caused the script got problem?
May be quicker to test your 10.x system on your own:
> rpm -qi bash
My SLED 11 x86_64 system has version 3.2. An 11.1 system next to me has
the same, so 11.0 probably does too. A SLES 10 system I have has 3.1.
vernon wong wrote:
> hi all, if anyone could help me out here, may i know what is the shell
> different between opensuse 10.2 and 11.
> when i type #man exit in both of them, one show bash builtin and
> another one show tcl builtin, and one of my user claimed that its
> because of the “exit” command in opensuse 10.2 that caused the script
> got problem?
> #ps → and both shows
> PID TTY TIME CMD
> 24190 pts/2 00:00:00 bash
> 24216 pts/2 00:00:00 ps
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
I doubt this. The priority of the man pages is not related to the order of the command searching in bash. A builtin will override any external command. And anyway the Tcl exit is only available inside Tcl programs.
To find out what exit really does, use the type command:
On my system these are the results, on exit and ls:
$ type exit ls
exit is a shell builtin
ls is aliased to `ls $LS_OPTIONS'
It could be your user aliased exit to something else. Aliases have precedence over builtins.
vernon wong wrote:
> openSUSE 10.2 (i586)
> VERSION = 10.2
> openSUSE 11.0 (i586)
> VERSION = 11.0
ok…i’ll get quiet now, again…that is, i can’t actually help with
the script error problem (not smart enough) but will note:
openSUSE 10.2 is no longer supported with security patches/updates,
and 11.0 is scheduled to go unsupported in June 2010…so, just
thought i’d mention you might wanna consider not exposing unpatched
machines to the net…