[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bourne sh redirection, a loop variable, and ':'
From: |
Eric Blake |
Subject: |
Re: Bourne sh redirection, a loop variable, and ':' |
Date: |
Sat, 13 Sep 2008 06:21:54 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.16) Gecko/20080708 Thunderbird/2.0.0.16 Mnenhy/0.7.5.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Ralf Wildenhues on 9/13/2008 1:27 AM:
>>
>> # for i in 1 2 3 ; do : >x$i ; sleep 60 ; done ; date ; ls -l x*
>> Wednesday, September 3, 2008 1:25:25 PM PDT
>> -rw-r--r-- 1 root root 0 Sep 3 13:22 x1
>>
>> it seems that the no-op is removed from the loop after the first iteration.
>> I guessed as much, but this makes it clearer. Pretty weird. - Bruce
>
> Indeed. OK to install this patch to describe the issue?
Yes, please apply.
- --
Don't work too hard, make some time for fun as well!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkjLsGIACgkQ84KuGfSFAYCDzwCfZxutsAln1xU3UQAo5teiYgl8
NecAn3yY29DTQCoth9KE9qMCMpZ4pQRT
=AaUp
-----END PGP SIGNATURE-----