Re: Strange return codes of continue

2008-06-27 Thread Dave B
Roman Rakus wrote: > This is realy strange. I have two examples > First: > > while [ 1 ]; do > while [ 1 ]; do > continue 0 > done > done > echo $? > > > Second: > > while [ 1 ]; do > while [ 1 ]; do > continue 0 > done > echo $? > done > echo $? > > In first case I have ech

Regular expression match operation with character classes fails in bash 3.2

2008-06-27 Thread John E. Wulff
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc -I/usr/src/packages/BUILD/bash-3.2 -L/usr/src/packages/BUILD/bash-3.2/../readline-5.2 Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MA

Re: Strange return codes of continue

2008-06-27 Thread Chet Ramey
Roman Rakus wrote: This is realy strange. I have two examples First: while [ 1 ]; do while [ 1 ]; do continue 0 done done echo $? Second: while [ 1 ]; do while [ 1 ]; do continue 0 done echo $? done echo $? In first case I have echoed 1. And I am expecting the same result in seco

Strange return codes of continue

2008-06-27 Thread Roman Rakus
This is realy strange. I have two examples First: while [ 1 ]; do while [ 1 ]; do continue 0 done done echo $? Second: while [ 1 ]; do while [ 1 ]; do continue 0 done echo $? done echo $? In first case I have echoed 1. And I am expecting the same result in second case, but I get 0