why does time (cmd) 2> file redirect time's output?

2016-01-27 Thread Stephane Chazelas
Hello, (tested with bash-4.3 and bash-2.05b) "time" is meant to time a pipeline. That generally includes redirections of the last command in the pipeline, but in the case of a subshell alone, the redirection is not timed(*) and seems to affect the output of "time" itself. That's quite inconsiste

Re: 'local -x VARIABLE' does not clear variable for subprocesses

2016-01-27 Thread Michał Górny
Hello, On Tue, 06 May 2014 10:47:45 -0400 Chet Ramey wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 5/5/14, 5:27 PM, Arfrever Frehtes Taifersar Arahesis wrote: > > 2014-05-05 22:12 Chet Ramey napisa?(a): > >>> Ability to locally unset a variable also for subprocesses would be

Leak in BASH "named" file descriptors?

2016-01-27 Thread Mathieu Patenaude
Hi, When using "named" file descriptors inside a function, the file descriptors are not automatically un-linked when the function returns, but when using regular "numbered" file descriptors they are automatically "destroyed". Not sure if it's "by" design or why it would be, but attached is a smal