On Mon, Jan 10, 2011 at 2:06 AM, Chris F.A. Johnson <ch...@cfajohnson.com>wrote:
> On Mon, 10 Jan 2011, Jan Schampera wrote: > > the help output for the set builtin command misses '--'. >> > > It's there: > > SYNOPSIS > set [--abefhkmnptuvxBCHP] [-o option-name] [arg ...] > > -- > Chris F.A. Johnson, <http://cfajohnson.com> > Author: > Pro Bash Programming: Scripting the GNU/Linux Shell (2009, Apress) > Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress) > > I think this distinction from the man page is what's missing in the help: -- If no arguments follow this option, then the positional parameters are unset. Otherwise, the positional parame‐ ters are set to the args, even if some of them begin with a -. - Signal the end of options, cause all remaining args to be assigned to the positional parameters. The -x and -v options are turned off. If there are no args, the posi‐ tional parameters remain unchanged.