trap output piped to another program gives incomplete results

2010-03-30 Thread Siddhesh Poyarekar
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-redhat-linux-gnu' -DCONF_VENDOR='redhat' +-DLOCALEDIR='/usr/share/locale'

Re: Bash sometimes cannot find aliases

2010-03-30 Thread Chet Ramey
On 3/30/10 2:36 AM, Clark J. Wang wrote: > Good news: > > I met this problem again a few minutes ago. Then I looked back to find out > what I was doing. After some investigation I could stably reproduce this > problem by following steps (tested with bash 3.1.17, 3.2.39 and 4.1.0): > > bash$ alias

Re: Bash sometimes cannot find aliases

2010-03-30 Thread Clark J. Wang
On Tue, Mar 30, 2010 at 8:15 PM, Greg Wooledge wrote: > On Tue, Mar 30, 2010 at 02:36:59PM +0800, Clark J. Wang wrote: > > After some investigation I could stably reproduce this > > problem by following steps (tested with bash 3.1.17, 3.2.39 and 4.1.0): > > > > bash$ alias xx='echo 142857'###

Re: Bash sometimes cannot find aliases

2010-03-30 Thread Greg Wooledge
On Tue, Mar 30, 2010 at 02:36:59PM +0800, Clark J. Wang wrote: > After some investigation I could stably reproduce this > problem by following steps (tested with bash 3.1.17, 3.2.39 and 4.1.0): > > bash$ alias xx='echo 142857'### Make sure there isn't an external cmd > named `xx' > bash$ expor