Casper.Dik at Sun.COM wrote: [snip] > The standard ONLY says that a PORTABLE invocation of a program should > use "--" to escape any first argument starting with "-" and that programs > not accepting options should skip that argument. > > Solaris printf does just that. > > The standard does NOT require an argument of the form -------- to elicit > an error.
I disagree since "--------" starts with a '-' character. If this argument comes before the "--" argument it needs to be interpreted as option. If you disagree we have to drag this in front of Don Dragun and/or file a "clarification request" to the Austin Group. > >As the evaluation of ksh93 as a replacement for /bin/sh progresses, I > >expect there to be a lot more cases where ksh93 (rightfully) causes > >some programs to break due to non-POSIX compliance in the current > >Solaris environment. > > Those do exist but printf isn't one of them. Erm... I disagree - see my previous postings about this issue. ---- Bye, Roland -- __ . . __ (o.\ \/ /.o) roland.mainz at nrubsig.org \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer /O /==\ O\ TEL +49 641 7950090 (;O/ \/ \O;)