bash -D doesn't parse $"translatable messages" inside heredocs

2012-06-03 Thread Alkis Georgopoulos
Configuration Information [Automatically generated, do not change]: Machine: i686 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i686' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/$ uname output: Linux alkis 3.

Re: Redirect a backgrounded process' stdout toward COPROC's stdin

2012-06-03 Thread Davide Baldini
On 06/03/12 17:01, Geir Hauge wrote: > 2012/6/3 Davide Baldini : >> Description: >> In the following test script I run an elementary coprocess to which the >> echo built-in, run in background, attaches its standard-output: >> >>#!/bin/bash >># TEST 1 >>coproc /bin/sleep 100 >>echo >

Re: Redirect a backgrounded process' stdout toward COPROC's stdin

2012-06-03 Thread Geir Hauge
2012/6/3 Davide Baldini : > Description: > In the following test script I run an elementary coprocess to which the > echo built-in, run in background, attaches its standard-output: > >    #!/bin/bash >    # TEST 1 >    coproc /bin/sleep 100 >    echo >&${COPROC[1]} & > > The script always fails, fo

Redirect a backgrounded process' stdout toward COPROC's stdin

2012-06-03 Thread Davide Baldini
Machine: i486 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -O2 -march='i486' (plus the flags added by Makefile) uname output: Linux debianBunker 2.6.26-2-686 #1 SMP Wed Sep 21 04:35:47 UTC 2011 i686 GNU/Linux Machine Type: i486-pc-linux-gnu Bash Version: 4.2.0(5)-release Patch Level: 5 Release

Re: .bashrc is sourced even for non-interactive shells (when run from sshd)

2012-06-03 Thread Pierre Gaston
On Sun, Jun 3, 2012 at 11:02 AM, Linda Walsh wrote: > > > Pierre Gaston wrote: >> >> In all your examples the shell will be called like: bash -c  'isatty 0 >> 2'. If you use a bash compiled with the above option you can add 'ps >> -p$$ -ocmd' at the top of your .bashrc to verify it. >> >> They are

Re: .bashrc is sourced even for non-interactive shells (when run from sshd)

2012-06-03 Thread Linda Walsh
Pierre Gaston wrote: In all your examples the shell will be called like: bash -c 'isatty 0 2'. If you use a bash compiled with the above option you can add 'ps -p$$ -ocmd' at the top of your .bashrc to verify it. They are all non-interactive because they are called with -c, disregarding if th