On Fri, 4 Aug 2000 11:34:07 -0400, Subba Rao <[EMAIL PROTECTED]> said:

>In BASH, why does the "\u" and "whoami" make a big difference for the
>$? value in PS1 string? The BASH version is 2.04.

Because 'whoami' is a command, and running it resets $?.  \u just
looks up the username internally.

Kelly


_______________________________________________
techtalk mailing list
[EMAIL PROTECTED]
http://www.linux.org.uk/mailman/listinfo/techtalk

Reply via email to