Re: trap output piped to another program gives incomplete results

2010-03-31 Thread Eric Blake
On 03/30/2010 11:45 PM, Siddhesh Poyarekar wrote: > Fix: > > I've not looked at how this can be fixed yet, but it looks > like bash is forking for the trap builtin, which inherits the > ignored signals, hence showing only them as active traps >

Strings manipulation without using variables

2010-03-31 Thread Francesco Pretto
Hello, I'm sorry if this isn't the wrong place to ask, but I couldn't find an user mailing list. My question is if it's possible to manipulate strings without using variables. Or, how to do the following in one line without using a variable: FILENAME=$(ls | tail --lines=1) echo ${FILENAME%.*} I

Re: Strings manipulation without using variables

2010-03-31 Thread Bob Proulx
Francesco Pretto wrote: > I'm sorry if this isn't the wrong place to ask, but I couldn't find an user > mailing list. The help-gnu-ut...@gnu.org mailing list is available for generic help questions such as this. > My question is if it's possible to manipulate strings without > using variables. O

Re: Strings manipulation without using variables

2010-03-31 Thread Greg Wooledge
On Wed, Mar 31, 2010 at 11:03:17AM -0600, Bob Proulx wrote: > Or with GNU sed using the \+ extension: > > FILENAME=$(ls | tail --lines=1 | sed 's/\.[^.]\+$//') > > I assume that 'ls' isn't what you actually are doing, that you have > reduced the test case to something smaller (thank you for tha