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.
Good luck.
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:
type exit
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.
there is a main script calling some sub script, whereby a pop up screen asking for continue or quit.
when the user click quit, it suppose to end the script, this work on version 11, but in version 10.2 the sub script still continue running even the selection is “quit”
kch1apwk423750 22: cat /etc/SuSE-release
openSUSE 10.2 (i586)
VERSION = 10.2
kch1apwk423762 25: cat /etc/SuSE-release
openSUSE 11.0 (i586)
VERSION = 11.0
i suppose its correct, i just wondering if there is any different among them? or there is a bug from the scripts? will the different version handle exit differently? any other command than “exit”?
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…
Without seeing the scripts it’s hard to tell what the problem is. But it sounds like you still have more of those “exit ERROR” programmer mistakes somewhere.