[PATCH] trap -p does not display ignored signals inherited from parent by a bash process

2010-03-23 Thread Siddhesh Poyarekar
Hi, I already reported this in Fedora rawhide (https://bugzilla.redhat.com/show_bug.cgi?id=572305) This also seems to be present upstream, so I hope you guys find this useful. Description of problem: trap -p doesn't show ignored signals inherited from its parent across an execve Version-Release

What is $[ ] ?

2010-03-23 Thread Marc Herbert
Hi, I could not find the dollar square brackets $[ ] expansion documented in the manual. Is it the same as $(( )) ? Cheers, Marc Le 22/03/2010 13:13, tbart...@gmx-topmail.de a écrit : > Configuration Information [Automatically generated, do not change]: > Machine: i686 > OS: linux-gnu > Com

Re: What is $[ ] ?

2010-03-23 Thread Pierre Gaston
On Tue, Mar 23, 2010 at 12:41 PM, Marc Herbert wrote: > Hi, > > > I could not find the dollar square brackets $[ ] expansion documented > in the manual. Is it the same as $(( )) ? > > Cheers, > > Marc > > $[ ] is an older version of $(( )) but it's deprecated. that's probably why it's not documen

Re: unicode aware printf \u and \U switches not supported

2010-03-23 Thread Greg Wooledge
On Mon, Mar 22, 2010 at 02:24:48PM +0100, Thomas Bartosik wrote: > Repeat-By: > tb...@blackknight ~ $ /usr/bin/printf "\u20AC\n" > ? > tb...@blackknight ~ $ type printf > printf is a shell builtin > tb...@blackknight ~ $ printf "\u20AC\n" > \u20AC Must be a GNUism. On HP-U

Re: unicode aware printf \u and \U switches not supported

2010-03-23 Thread Roman Rakus
On 03/23/2010 03:01 AM, Chet Ramey wrote: On 3/22/10 9:24 AM, Thomas Bartosik wrote: Bash Version: 4.0 Patch Level: 35 Release Status: release Description: bash's printf does not understand \u and \U although the man page says it supports all expressions that printf(1) supports.

Re: What is $[ ] ?

2010-03-23 Thread Chet Ramey
On 3/23/10 6:41 AM, Marc Herbert wrote: > Hi, > > > I could not find the dollar square brackets $[ ] expansion documented > in the manual. Is it the same as $(( )) ? It's the deprecated version of $((...)), dating from Posix.2 draft 9 circa 1989 or so. Chet -- ``The lyf so short, the craft so

Re: [PATCH] trap -p does not display ignored signals inherited from parent by a bash process

2010-03-23 Thread Eric Blake
On 03/23/2010 01:29 AM, Siddhesh Poyarekar wrote: > Steps to Reproduce: > 1. trap '' SIGINT > 2. exec bash > 3. trap -p POSIX states: "Signals that were ignored on entry to a non-interactive shell cannot be trapped or reset, although no error need be reported when attempting to do so. An interact

Re: [PATCH] trap -p does not display ignored signals inherited from parent by a bash process

2010-03-23 Thread Siddhesh Poyarekar
On Tue, Mar 23, 2010 at 7:46 PM, Eric Blake wrote: > On 03/23/2010 01:29 AM, Siddhesh Poyarekar wrote: >> Steps to Reproduce: >> 1. trap '' SIGINT >> 2. exec bash >> 3. trap -p > > POSIX states: > > "Signals that were ignored on entry to a non-interactive shell cannot be > trapped or reset, althou