Re: [PATCH] Fix hang if $OLDPWD points to inaccessible directory

2017-11-27 Thread Mikulas Patocka
On Wed, 4 Oct 2017, Eduardo A. Bustamante López wrote: > On Tue, Oct 03, 2017 at 10:29:08PM +0200, Mikulas Patocka wrote: > > If $OLDPWD points to a non-existing directory, 'cd -' will fail. > > But if we clear $OLDPWD, 'cd -' will fail too (with just different message). > [...] > > I performed

Re: Bash: sleep execution issue with bash loadable builtins

2017-11-27 Thread Ángel
On 2017-11-27 at 17:47 +0530, Thiruvadi Rajaraman wrote: > Reproducible test case and Console logs: > Simpler test case: bash-4.4-rc1# cd examples/loadables/ bash-4.4-rc1/examples/loadables# enable -f ./sleep sleep bash-4.4-rc1/examples/loadables# sleep 1 &

Re: Bash: sleep execution issue with bash loadable builtins

2017-11-27 Thread Chet Ramey
On 11/27/17 4:17 AM, Thiruvadi Rajaraman wrote: > Hi, > > Found a 'sleep' execution issue with bash loadable builtins and has > performed > the below sleep test on bash-4.4-rc1. That's an interesting one. It looks like the SIGCHLD interrupts the select loop, even though bash supplies SA_RESTART w

Re: [here string] uncompatible change on here string function

2017-11-27 Thread Vladimir Marek
> > It's not the point. the problem is bash-4.4 auto add quote around $var or > > $(cmd) after '<<<' > > > > On bash-4.2 and before following command always works fine > > read ignore fstype <<<$(df --output=fstype $mountpoint) > > > > But after Update bash-4.4, our customer's script get fa

Feature idea

2017-11-27 Thread PePa
Recently I wanted to put the content of the stdout and the stderr of a command into variables (without needing to write to a file), something like this: sterr=$(cmd >>>stout) Or: stout=$(cmd 2>>>sterr) Or even: cmd >>>stout 2>>>sterr Obviously the idea is to introduce an operator >>> that

Bash: sleep execution issue with bash loadable builtins

2017-11-27 Thread Thiruvadi Rajaraman
Hi, Found a 'sleep' execution issue with bash loadable builtins and has performed the below sleep test on bash-4.4-rc1. Bash version: 4.4-rc1 Web link: https://ftp.gnu.org/gnu/bash/bash-4.4-rc1.tar.gz Reproducible test case and Console logs: bash-4.4-rc1

Re: Re: [here string] uncompatible change on here string function

2017-11-27 Thread Greg Wooledge
On Fri, Nov 24, 2017 at 11:22:56AM +0800, 尹剑虹 wrote: > It's not the point. the problem is bash-4.4 auto add quote around $var or > $(cmd) after '<<<' > > On bash-4.2 and before following command always works fine > read ignore fstype <<<$(df --output=fstype $mountpoint) > > But after Update