Re: [arch-general] [PATCH 1/2] kill_everything: Reduce number of -f tests

2010-09-10 Thread Thomas Bächler
Am 09.09.2010 18:48, schrieb Victor Lowther: >> *.ext` etc. would result in ls being passed an argument '*.ext' in the >> event that *.ext doesn't match anything. With nullglob set, no argument >> >> gets passed and you end up with just `ls` which is likely to cause >> subtle bugs. > > Sounds li

Re: [arch-general] [PATCH 1/2] kill_everything: Reduce number of -f tests

2010-09-09 Thread Victor Lowther
"Nathan Wayde" wrote: >On 09/09/10 16:19, Victor Lowther wrote: >> >> >> "Thomas Bächler" wrote: >> >>> Am 08.09.2010 06:16, schrieb Victor Lowther: On Tue, Sep 7, 2010 at 10:47 PM, Dave Reisner >>> wrote: > Instead of checking for the existance of a file in >/var/run/daemons >>> on >

Re: [arch-general] [PATCH 1/2] kill_everything: Reduce number of -f tests

2010-09-09 Thread Nathan Wayde
On 09/09/10 16:19, Victor Lowther wrote: "Thomas Bächler" wrote: Am 08.09.2010 06:16, schrieb Victor Lowther: On Tue, Sep 7, 2010 at 10:47 PM, Dave Reisner wrote: Instead of checking for the existance of a file in /var/run/daemons on every iteration, handle the null case by setting null

Re: [arch-general] [PATCH 1/2] kill_everything: Reduce number of -f tests

2010-09-09 Thread Victor Lowther
"Thomas Bächler" wrote: >Am 08.09.2010 06:16, schrieb Victor Lowther: >> On Tue, Sep 7, 2010 at 10:47 PM, Dave Reisner >wrote: >>> Instead of checking for the existance of a file in /var/run/daemons >on >>> every iteration, handle the null case by setting nullglob. The shopt >>> call is done i

Re: [arch-general] [PATCH 1/2] kill_everything: Reduce number of -f tests

2010-09-08 Thread Thomas Bächler
Am 08.09.2010 06:16, schrieb Victor Lowther: > On Tue, Sep 7, 2010 at 10:47 PM, Dave Reisner wrote: >> Instead of checking for the existance of a file in /var/run/daemons on >> every iteration, handle the null case by setting nullglob. The shopt >> call is done inside a subshell as to not bother t

Re: [arch-general] [PATCH 1/2] kill_everything: Reduce number of -f tests

2010-09-07 Thread Victor Lowther
On Tue, Sep 7, 2010 at 10:47 PM, Dave Reisner wrote: > Instead of checking for the existance of a file in /var/run/daemons on > every iteration, handle the null case by setting nullglob. The shopt > call is done inside a subshell as to not bother the environment since we > may be going to runlevel

[arch-general] [PATCH 1/2] kill_everything: Reduce number of -f tests

2010-09-07 Thread Dave Reisner
Instead of checking for the existance of a file in /var/run/daemons on every iteration, handle the null case by setting nullglob. The shopt call is done inside a subshell as to not bother the environment since we may be going to runlevel 1 only temporarily. --- functions |4 +++- 1 files chang