Re: Questions to bash "read" builtin functionality (and supposed problem with while).

2013-01-17 Thread Linus Swälas
I have a similar problem to report as Fiedler Roman regarding read and also another problem regarding while. Maybe the while case is intended behavior though. =) See comments in the script below. bash --version GNU bash, version 4.2.39(1)-release (x86_64-redhat-linux-gnu) Example script starts

|& in bash?

2013-01-17 Thread John Caruso
One feature of other shells (e.g. zsh and tcsh) I'd really love to have in bash is "|&", which redirects both stdout and stderr--basically just a shortcut for "2>&1 |". Has this ever been considered for bash? It may not seem like much of a difference, but it's saved me an enormous numbers of keys

Re: |& in bash?

2013-01-17 Thread Chet Ramey
On 1/17/13 1:01 PM, John Caruso wrote: > One feature of other shells (e.g. zsh and tcsh) I'd really love to have > in bash is "|&", which redirects both stdout and stderr--basically just > a shortcut for "2>&1 |". Has this ever been considered for bash? That has been in bash since bash-4.0. Chet

Re: |& in bash?

2013-01-17 Thread John Caruso
In article , Chet Ramey wrote: > On 1/17/13 1:01 PM, John Caruso wrote: >> One feature of other shells (e.g. zsh and tcsh) I'd really love to have >> in bash is "|&", which redirects both stdout and stderr--basically just >> a shortcut for "2>&1 |". Has this ever been considered for bash? > > Tha

Re: Questions to bash "read" builtin functionality (and supposed problem with while).

2013-01-17 Thread Pierre Gaston
On Thu, Jan 17, 2013 at 4:24 PM, Linus Swälas wrote: > I have a similar problem to report as Fiedler Roman regarding read and also > another problem regarding while. Maybe the while case is intended behavior > though. =) > # It the below also a bug? > # while can't handle nulls, this doesn't work:

interrupted system call when using named pipes on FreeBSD

2013-01-17 Thread Mike Frysinger
this is somewhat a continuation of this thread: http://lists.gnu.org/archive/html/bug-bash/2008-10/msg00091.html i've gotten more or less the same report in Gentoo: http://bugs.gentoo.org/447810 the simple test case is: $ cat test.sh #!/bin/bash while :; do (:)& (:)& (:)& (:)& (:)& (:)& (

Re: [PATCH] bash: speed up `read -N`

2013-01-17 Thread Mike Frysinger
On Monday 19 November 2012 19:46:17 Mike Frysinger wrote: > Rather than using 1 byte reads, use the existing cache read logic. > This could be sped up more, but this change is not as invasive and > should (hopefully) be fairly safe. ping ... -mike signature.asc Description: This is a digitally s