Re: [BUG] 'unset' fails silently under specific conditions

2018-05-01 Thread Chet Ramey
On 5/1/18 6:27 PM, Martijn Dekker wrote: > Op 01-05-18 om 19:36 schreef Chet Ramey: >> OK, so which is it? Does an assignment statement preceding a special >> builtin in a shell function create a local variable (as we discussed >> just yesterday) > > Huh? That was about 'typeset'/'declare'. How is

Re: [PATCH] A terminating signal has to complete a bash process

2018-05-01 Thread Andrei Vagin
On Tue, May 01, 2018 at 02:15:17PM -0400, Chet Ramey wrote: > On 5/1/18 12:44 PM, Andrei Vagin wrote: > > On Tue, May 01, 2018 at 10:40:18AM -0400, Chet Ramey wrote: > >> On 4/30/18 6:05 PM, Andrei Vagin wrote: > >>> bash sets a handler for all terminating signals, which saves history, > >>> execut

Re: [BUG] 'unset' fails silently under specific conditions

2018-05-01 Thread Martijn Dekker
Op 01-05-18 om 19:36 schreef Chet Ramey: OK, so which is it? Does an assignment statement preceding a special builtin in a shell function create a local variable (as we discussed just yesterday) Huh? That was about 'typeset'/'declare'. How is that relevant here? or does it create a global va

Re: [BUG] 'unset' fails silently under specific conditions

2018-05-01 Thread Robert Elz
Date:Tue, 1 May 2018 14:36:29 -0400 From:Chet Ramey Message-ID: <71d753dc-036f-7fd7-d703-408c3f8ac...@case.edu> | OK, so which is it? Does an assignment statement preceding a special | builtin in a shell function create a local variable (as we discussed | just y

Re: [PATCH] A terminating signal has to complete a bash process

2018-05-01 Thread Andrei Vagin
On Tue, May 01, 2018 at 10:40:18AM -0400, Chet Ramey wrote: > On 4/30/18 6:05 PM, Andrei Vagin wrote: > > bash sets a handler for all terminating signals, which saves history, > > executes traps, sets a default signal handler and re-sends the same > > signal to itself. It expects that this signal w

Re: [BUG] 'unset' fails silently under specific conditions

2018-05-01 Thread Chet Ramey
On 5/1/18 2:29 PM, Martijn Dekker wrote: > Op 01-05-18 om 18:45 schreef Martijn Dekker: >> It appears that it must have one function calling another, and that other >> function having an assignment preceding a special builtin, for 'unset' to >> fail silently for the variable so assigned. > > Actua

Re: [BUG] 'unset' fails silently under specific conditions

2018-05-01 Thread Martijn Dekker
Op 01-05-18 om 18:45 schreef Martijn Dekker: It appears that it must have one function calling another, and that other function having an assignment preceding a special builtin, for 'unset' to fail silently for the variable so assigned. Actually it can be simplified further: the following also

Re: [PATCH] A terminating signal has to complete a bash process

2018-05-01 Thread Chet Ramey
On 5/1/18 12:44 PM, Andrei Vagin wrote: > On Tue, May 01, 2018 at 10:40:18AM -0400, Chet Ramey wrote: >> On 4/30/18 6:05 PM, Andrei Vagin wrote: >>> bash sets a handler for all terminating signals, which saves history, >>> executes traps, sets a default signal handler and re-sends the same >>> sign

[BUG] 'unset' fails silently under specific conditions

2018-05-01 Thread Martijn Dekker
Op 26-04-18 om 04:51 schreef Martijn Dekker: I've also succeeded in making 'unset -v' fail silently for a variable that is so exported, but I've so far been unable to track down a specific reproducer that is simple enough to post here. Here is that reproducer. The following appears to be the m

Re: [PATCH] A terminating signal has to complete a bash process

2018-05-01 Thread Chet Ramey
On 4/30/18 6:05 PM, Andrei Vagin wrote: > bash sets a handler for all terminating signals, which saves history, > executes traps, sets a default signal handler and re-sends the same > signal to itself. It expects that this signal will kill it. > > Unfortunately it doesn't work in Linux, when a bas

RTL support

2018-05-01 Thread yaser
hello everyone please Add RTL support to bash we use RTL languages like Persian , Arabic when we use vim our oder tools in bash we get some problems tank you