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]>,
> 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
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