Re: Problem around brackets, and ||

2010-05-04 Thread Marc Herbert
Le 03/05/2010 21:08, Kunszt Árpád a écrit : http://mywiki.wooledge.org/BashPitfalls#cmd1_.26.26_cmd2_.7C.7C_cmd3 I read it, thanks. I understand it now. I read man bash lots of times, but this behavior had escaped my attention. There isn't any word about cmd1 cmd2 || cmd3 only the cmd1

Problem around brackets, and ||

2010-05-03 Thread Kunszt Árpád
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: x86_64-pc-linux-gnu-gcc Compilation CFLAGS:

Re: Problem around brackets, and ||

2010-05-03 Thread Greg Wooledge
On Mon, May 03, 2010 at 07:49:12PM +0200, Kunszt Árpád wrote: Description: If the last command in a {...} has and fails and the {...} has an || outside then the outside command will be executed. Use if/then/else/fi instead of ||. Using || is dangerous, as I've explained here: