On Tue, 2 May 2017, Andrew McGlashan wrote:

> # The ./ with the ls is there on purpose to make it safer
> # from potential globbing issues
> for old_fn in $(ls ./*.jpg)

Just stop it right now!  Stop doing that!

Just don't!

`for old_fn in *.jpg` is all you need, all you want.  Then make sure
"$old_fn" is properly quoted elsewhere.

http://porkmail.org/era/unix/award.html

-- 
Tim Connors
_______________________________________________
luv-main mailing list
[email protected]
https://lists.luv.asn.au/cgi-bin/mailman/listinfo/luv-main

Reply via email to