On 20-02-12 21:40, Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2012-02-20 21:18, Jos van Kan wrote:
The script says for a in * (all files in the directory) instead of for a in $* (all files in the argument list)
Furthermore I'm not sure if it's wise to call this script "touch" instead of "mytouch" I also thought the same, but that's not what is happening. The script runs in a permanent loop, scanning all files matching some test, and then changing the attributes. There is no argument to the script.
Touch is external, to test the script action.
- -- Cheers / Saludos,
Carlos E. R. (from 11.4 x86_64 "Celadon" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/
iEYEARECAAYFAk9Cr88ACgkQIvFNjefEBxrHLwCgtmjm+EFoA/RZfXYgWOaFh/cI TNcAni7BfsyxPsimQLD8gL/iNR/VjHIl =bA0G -----END PGP SIGNATURE----- Oops. You're right. (Same player shoots again)
[ -N file ] is true if the file has been modified since it was last read, according to man bash. None of the lynn* files are being read, so the condition remains true for all those files. Regards, -- Jos van Kan registered Linux user #152704 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org