Re: Exit-on-error option does not work as expected

2007-07-17 Thread Archimerged Ark Submedes
On 7/17/07, Paul Jarc <[EMAIL PROTECTED]> wrote: Nevertheless, it is. The current behavior is too well-entrenched to change it, so the most reliable way to get the behavior you want is to skip "-e" and add "&&" between all commands. Change the documentation to insert the bracketed sentence:

Re: implicitcd for bash?

2007-07-17 Thread Chet Ramey
> In tcsh (and zsh) the "set implicitcd" is extremely useful when you > get used to it. > It allows on to type just "DIRECTORY_NAME" instead of "cd > DIRECTORY_NAME". At first it might seem like a minor difference, but > after getting used to it it's quite helpful, especially when you do a > lot o

Re: Exit-on-error option does not work as expected

2007-07-17 Thread Paul Jarc
[EMAIL PROTECTED] wrote: > My claim is that in the attached script, the 'false' command should > *not* be considered to be a part of the && list. Nevertheless, it is. The current behavior is too well-entrenched to change it, so the most reliable way to get the behavior you want is

implicitcd for bash?

2007-07-17 Thread Dan Nicolaescu
In tcsh (and zsh) the "set implicitcd" is extremely useful when you get used to it. It allows on to type just "DIRECTORY_NAME" instead of "cd DIRECTORY_NAME". At first it might seem like a minor difference, but after getting used to it it's quite helpful, especially when you do a lot of cut and p

Re: Exit-on-error option does not work as expected

2007-07-17 Thread Andreas Schwab
[EMAIL PROTECTED] writes: > archive_item && delete_item Only simple commands cause the shell to exit on error with -e. But the commands in the function archive_item are part of a && list. `-e' Exit immediately if a simple command (*note Simple Commands::) exits w

Re: Exit-on-error option does not work as expected

2007-07-17 Thread Matthew Woehlke
[EMAIL PROTECTED] wrote: Script: #! /bin/bash set -e archive_item() { set -e false # this is the command that fails to archive the item echo 'Archived.' } delete_item() { true

Exit-on-error option does not work as expected

2007-07-17 Thread mod . bashbug . 2007-07-16
Configuration Information [Automatically generated, do not change]: Machine: i386 OS: linux-gnu Compiler: i386-redhat-linux-gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i386-redhat-linux-gnu' -DCONF_VENDOR='redhat' -DLOCALEDIR='/usr/sha