Re: Aliases fail in command substitution in noninteractive mode.
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 inconvenience. However, what is the rationale for this behaviour? -- Felipe Sateler ___ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash
Re: feature request
> 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 leading `-' is to reduce confusion when bash replicates the first character of PS4 to indicate multiple levels of subshells. Replace it with any character you like. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer Live Strong. Chet Ramey, ITS, CWRU[EMAIL PROTECTED]http://tiswww.tis.case.edu/~chet/ ___ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash
Re: feature request
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]>, Toronto, Canada ThinFlash: Linux thin-client on USB key (flash) drive http://home.eol.ca/~parkw/thinflash.html BashDiff: Super Bash shell http://freshmeat.net/projects/bashdiff/ ___ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash