Shouting the return code. (Re: Meaning of "rc" in cron/log)
Richard Palmer
rdp at spike.stars.flab.Fujitsu.JUNET
Thu Jun 30 20:11:44 AEST 1988
In article <3671 at psuvax1.cs.psu.edu> flee at gondor.cs.psu.edu (Felix Lee) writes:
>Does ksh let you put the return code in the prompt? Something like
>PS1='($?) '? Showing only non-zero return codes would be better.
PS1="\${?%0} $" seems to do what you want.
--
Richard Palmer
uunet!spike!rdp
3939 Houma Blvd., #5, Metairie, LA 70006
504-888-5315
More information about the Comp.unix.questions
mailing list