with errexit and noclobber on, imao a for loop redirecting onto an existing file should cause a script to exit, but in 93u+, it doesn't
$ cat ./eCfor.ksh #!/Users/adavies/src/ksh93/arch/darwin.i386-64/bin/ksh -eC print "$KSH_VERSION" touch /tmp/foo for i in 1 2 3; do print $i; done >/tmp/foo print 'never reached?' print 4 >/tmp/foo print 'never reached!' $ ./eCfor.ksh Version AJM 93u+ 2012-08-01 ./eCfor.ksh: line 3: /tmp/foo: file already exists [File exists] never reached? ./eCfor.ksh[6]: /tmp/foo: file already exists [File exists] $ -- Aaron Davies [email protected] _______________________________________________ ast-users mailing list [email protected] http://lists.research.att.com/mailman/listinfo/ast-users
