SH bahaviour to not fork a subshell after " | while read "

2012-06-01 Thread freD
Configuration Information [Automatically generated, do not change]: Machine: powerpc OS: aix5.1 Compiler: xlc Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='powerpc' -DCONF_OSTYPE='aix5.1' -DCONF_MACHTYPE='powerpc-ibm-aix 5.1' -DCONF_VENDOR='ibm' -DLOCALEDIR='/opt/freeware/share/locale' -DP

Re: SH bahaviour to not fork a subshell after " | while read "

2012-06-01 Thread Pierre Gaston
On Fri, Jun 1, 2012 at 11:53 AM, freD wrote: > Configuration Information [Automatically generated, do not change]: > Machine: powerpc > OS: aix5.1 > Compiler: xlc > Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='powerpc' > -DCONF_OSTYPE='aix5.1' -DCONF_MACHTYPE='powerpc-ibm-aix > 5.1' -DCO

Re: SH bahaviour to not fork a subshell after " | while read "

2012-06-01 Thread Greg Wooledge
On Fri, Jun 01, 2012 at 10:53:22AM +0200, freD wrote: > bash-3.00# T=toto ; du | while read a ; do T=$a ; done ; echo $T > toto http://mywiki.wooledge.org/BashFAQ/024 Quick answer: while read ... done < <(some command) Portable version: mkfifo fifo; some command > fifo & ...

Re: SH bahaviour to not fork a subshell after " | while read "

2012-06-01 Thread Chet Ramey
On 6/1/12 4:53 AM, freD wrote: > Configuration Information [Automatically generated, do not change]: > Machine: powerpc > OS: aix5.1 > Compiler: xlc > Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='powerpc' > -DCONF_OSTYPE='aix5.1' -DCONF_MACHTYPE='powerpc-ibm-aix > 5.1' -DCONF_VENDOR='ibm'

Re: SH bahaviour to not fork a subshell after " | while read "

2012-06-01 Thread freD
Thanks ! 2012/6/1 Greg Wooledge : > On Fri, Jun 01, 2012 at 10:53:22AM +0200, freD wrote: >> bash-3.00# T=toto ; du | while read a ; do   T=$a ; done ; echo $T >> toto > > http://mywiki.wooledge.org/BashFAQ/024 > > Quick answer:     while read ... done < <(some command) > Portable version: mkfifo

bash build

2012-06-01 Thread rac8006
What is the proper way to add popd pushd dirs etc to bash. When I currently build bash these are missing. I also get an error libintl_ngettext undefined reference. I can get around this error by adding -lintl to the link. Just don't know how to get the Makefile to add -lintl. Thanks for your