On Aug 13, 2014, at 2:31 PM, Ken Irving wrote:
> I like the idea, but switch negation would need to be supported, and
> I don't think that's been covered sufficiently. Using ! as a switch
> modifier might be possible, and I like it, but would then also apply to
> single filetest switches, e.g.,
On 8/13/14, 12:42 PM, Greg Wooledge wrote:
> This was tested on bash 4.3.22 (HP-UX) and bash 4.2.37 (Linux).
>
> Create a script named foo with the following content:
>
> #!/bin/bash
> set -m
> while sleep 1; do :; done
>
> Make it executable, and type
>
> ./foo &
>
> at an interactive shell.
On 8/13/14, 12:08 PM, Greg Wooledge wrote:
> Bash 4.3.22, HP-UX.
>
> imadev:~$ child() { trap - INT; trap 'echo I got an INT; trap - INT; kill
> -INT $
> BASHPID' INT; while true; do sleep 1; done; }; child &
> [1] 19116
> imadev:~$ kill -INT 19116
> imadev:~$ kill -INT 19116
> imadev:~$ kill -TE
On 8/13/14, 10:09 AM, Greg Wooledge wrote:
> On Wed, Aug 13, 2014 at 09:47:51AM -0400, Chet Ramey wrote:
>> On 8/12/14, 11:05 PM, Mike Frysinger wrote:
>>> foo=(0 0 0); [[ -z ${foo[@]#0} ]]; echo $?
>
>> Word splitting is
>> suppressed inside [[, so the array expands to a single word ("0 0 0"), th
On Wed, Aug 13, 2014 at 12:16:52PM -0400, Steve Simmons wrote:
>
> On Aug 12, 2014, at 4:36 PM, Chet Ramey wrote:
>
> > On 8/9/14, 7:07 AM, Steve Simmons wrote:
> >
> >> It would be nice to have ganged file test switches. As an example, to test
> >> that a directory exists and is properly acce
This was tested on bash 4.3.22 (HP-UX) and bash 4.2.37 (Linux).
Create a script named foo with the following content:
#!/bin/bash
set -m
while sleep 1; do :; done
Make it executable, and type
./foo &
at an interactive shell. You get your shell prompt back. You can press
Enter as many times a
On Aug 12, 2014, at 4:36 PM, Chet Ramey wrote:
> On 8/9/14, 7:07 AM, Steve Simmons wrote:
>
>> It would be nice to have ganged file test switches. As an example, to test
>> that a directory exists and is properly accessible one could do
>>
>> if [[ -d foo ]] && [[ -r foo ]] && [[ -x foo ]] ;
Bash 4.3.22, HP-UX.
imadev:~$ child() { trap - INT; trap 'echo I got an INT; trap - INT; kill -INT $
BASHPID' INT; while true; do sleep 1; done; }; child &
[1] 19116
imadev:~$ kill -INT 19116
imadev:~$ kill -INT 19116
imadev:~$ kill -TERM 19116
[1]+ Terminated child
The manual says:
On Wed, Aug 13, 2014 at 09:47:51AM -0400, Chet Ramey wrote:
> On 8/12/14, 11:05 PM, Mike Frysinger wrote:
> > foo=(0 0 0); [[ -z ${foo[@]#0} ]]; echo $?
> Word splitting is
> suppressed inside [[, so the array expands to a single word ("0 0 0"), the
> 0s are removed, leaving " "
That doesn't sou
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 8/12/14, 11:05 PM, Mike Frysinger wrote:
> simple enough code:
> foo=(0 0 0); [[ -z ${foo[@]#0} ]]; echo $?
>
> with bash-4.3_p13 and older, this would show 0. starting with bash-4.3_p14,
> this now shows 1.
It's intentional, and part of the sam
10 matches
Mail list logo