Bourne sh redirection, a loop variable, and ':'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

is this nice little Bourne shell quirk already known?

$ for i in 1 2 3 ; do : >x$i; done
$ ls
x1

It works when I use 'echo' instead of ':'.

Seen with Solaris 10 sh, but also some other old shells IIRC.

Cheers,
Ralf


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux