First, please pardon me for my bad English.
So, this is my prompt: PS1='(\[$(tput md)\]\t <\w>\[$(tput me)\]) $(echo $?) \$ ' I am not really versed in bash, but I surmise that "echo $?" should be the exit code of the most recently executed command. In effect, it is always zero, even when I'm sure the exit code is NOT 0. What's the problem with it? Maybe it is actually printing the exit code of "tput" which is always zero? If that's the problem, maybe the value of "$?" should be saved first and then echoed at the end? Any suggestions? _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"