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

Thomas Bächler thomas at archlinux.org
Fri Sep 10 05:15:36 EDT 2010


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 like another reason to never parse the output of ls in a shell script ( not that I needed more).

Agreed! If such a thing is still in the scripts, it should be replaced
(I think Victor did that in a few places).

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.archlinux.org/pipermail/arch-general/attachments/20100910/6b4fe08d/attachment.bin>


More information about the arch-general mailing list