Re: Q on Bash's self-documented POSIX compliance...

2013-01-26 Thread John Kearney
Am 27.01.2013 01:37, schrieb Clark WANG: > On Sat, Jan 26, 2013 at 1:27 PM, Linda Walsh wrote: > >> I noted on the bash man page that it says it will start in posix >> compliance mode when started as 'sh' (/bin/sh). >> >> What does that mean about bash extensions like arrays and >> use of [[]]? >>

Re: Q on Bash's self-documented POSIX compliance...

2013-01-26 Thread Clark WANG
On Sat, Jan 26, 2013 at 1:27 PM, Linda Walsh wrote: > I noted on the bash man page that it says it will start in posix > compliance mode when started as 'sh' (/bin/sh). > > What does that mean about bash extensions like arrays and > use of [[]]? > > Those are currently not-POSIX (but due to both

Re: |& in bash?

2013-01-26 Thread Linda Walsh
Bob Proulx wrote: And therefore they don't know how to write other directory traversal tasks either. find . -type f -exec sed -n '/PATTERN/s/THIS/THAT/gp' {} + --- You mean I can't: "sed -Rn '...'" ? Drat. OB.bash: bash -c 'while (($#)); do [[ -f $1 ]] && sed -n "/PATTERN/s/THIS/THA

Q on Bash's self-documented POSIX compliance...

2013-01-26 Thread Linda Walsh
I noted on the bash man page that it says it will start in posix compliance mode when started as 'sh' (/bin/sh). What does that mean about bash extensions like arrays and use of [[]]? Those are currently not-POSIX (but due to both Bash and Ksh having them, some think that such features are part