Re: feature request

2006-06-05 Thread William Park
On Wed, May 31, 2006 at 04:49:36PM -0500, A P Garcia wrote: > It would be very useful to have a shell option that displays the exit > code of each command when it terminates. I'm currently using PS1='$? [EMAIL PROTECTED]:\w\$ ' $? is what you are after. -- William Park <[EMAIL PROTECTED]>,

Re: feature request

2006-06-05 Thread Chet Ramey
> Bash Version: 2.05b > Patch Level: 0 > Release Status: release > > Description: > It would be very useful to have a shell option that displays the exit > code of each command when it terminates. Try PS4=$'-$?\n+ ' for the `bash -x' case. You can use PROMPT_COMMAND for interactive shells. The

Re: Aliases fail in command substitution in noninteractive mode.

2006-06-05 Thread Felipe Sateler
On Sunday 04 June 2006 23:45, Paul Jarc wrote: > man bash, under "ALIASES": >Aliases are not expanded when the shell is not interactive, unless > the expand_aliases shell option is set using shopt (see the description of > shopt under SHELL BUILTIN COMMANDS below). Oops. Sorry for the in