Path: utzoo!attcan!uunet!spike!rdp From: rdp@spike.stars.flab.Fujitsu.JUNET (Richard Palmer) Newsgroups: comp.unix.questions Subject: Re: Shouting the return code. (Re: Meaning of "rc" in cron/log) Message-ID:Date: 30 Jun 88 10:11:44 GMT References: <717@mccc.UUCP> <16377@tut.cis.ohio-state.edu> <3671@psuvax1.cs.psu.edu> Sender: rdp@spike.UUCP Distribution: na Organization: Fujitsu Laboratories Ltd., Kawasaki, Japan. Lines: 14 In-reply-to: flee@gondor.cs.psu.edu's message of 28 Jun 88 11:08:37 GMT In article <3671@psuvax1.cs.psu.edu> flee@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