On Thu, Apr 07, 2016 at 11:55:10 +1000, Cameron Simpson wrote: > Probably fixed in modern shells. How long have you been shell scripting? (I > also consider it a bug; the incantation is a workaround.)
I first landed in *nix land with Fedora Core 5 (2005 or 2006, I forget which), was doing shell not too long after that (though I also graduated high school a few years later, so it isn't *that* late given my age and computer access history; overall, yeah). I am strict with my shell code though (POSIX where possible and littered with things like 'readonly' and 'local' to keep things safer). More surprised that the bugs from long ago *weren't* kept in the name of compatibility. > Not claiming it is necessary today, but it is like proving the nonexistence > of > things - not possible in general. It definitely was necessary in the past. Indeed. I think there's an SGI around at work that I might be able to test… Seems that SunOS 5.10 is also OK (including sh, bash, ksh, jsh, pfsh, and tcsh) is also OK with it. > Derek did a similar test. Looks like most modern systems behave well. But the > day I run up a PDP-11 in a VM.... :) --Ben