L A Walsh <[email protected]> wrote: > On 2019/06/08 03:10, Stephane CHAZELAS wrote: > > I beleive Joerg meant that we need a way to *ensure* that the > > shell excludes "." and ".." from glob expansions. > > > > Otherwise: > > > > chmod a-x .* > > > > Could still be unsafe if we don't know the version of the > > standard the shell is conforming to. > > > Writing code like that seems to be inviting undefined > behavior.
Correct, if we did _only_ change the POSIX standard to permit to hide "." and ".." from the glob results, this would cause undefined behavior. Even if we did require this behavior in Issue 9, this would still result in undefined behavior in 2030 since you cannot assume that at that time all platforms are Issue 9 compliant. Jörg -- EMail:[email protected] (home) Jörg Schilling D-13353 Berlin [email protected] (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.org/private/ http://sf.net/projects/schilytools/files/'
