Jilles Tjoelker c1564db05d sh: Recognize "--" in . and exec.
Although "--" historically has not been required to be recognized for
certain special builtins that do not take options in POSIX, some other
implementations recognize options for them, requiring scripts to use "--" or
avoid operands starting with "-".

Operands starting with "-" can be avoided with eval by prepending a space,
and cannot occur with break, continue, exit, return and shift as they only
take numbers, nor with times as it does not take operands. With . and exec,
avoiding "-" is not so easy as it may require reimplementing the PATH
search; therefore the current proposal for POSIX is to require recognition
of "--" for them.

We continue to accept other strings starting with "-" as operands to . and
exec, and also "--" if it is alone to . (which would otherwise be invalid
anyway).
2010-05-28 22:40:24 +00:00
..
2009-10-15 18:17:29 +00:00
2009-06-23 23:30:56 +00:00
2010-01-13 17:49:35 +00:00
2009-01-30 16:23:57 +00:00
2009-06-23 23:30:56 +00:00
2010-03-04 16:08:01 +00:00
2009-11-02 12:35:38 +00:00
2009-06-23 23:30:56 +00:00
2009-09-04 21:49:37 +00:00
2010-02-15 14:07:40 +00:00
2010-05-13 16:46:23 +00:00
2010-05-28 22:40:24 +00:00
2009-10-15 18:17:29 +00:00