Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: 5.3: printf -



On Dec 12, 11:41pm, Daniel Shahaf wrote:
}
} % printf -
} printf: not enough arguments
} 
} Happens in sh mode too.  dash and bash [that's what I have handy] print
} a minus sign.

I was going to blame this on zsh generally treating a single "-" like
"--" in argument lists (which is documented), but something is fishy:

torch% printf -- --      
printf: not enough arguments
torch% printf - -  
-%
torch% printf - --
printf: not enough arguments
torch% printf -- - 
-%
torch% printf -- -- --
--%

("%" there is PROMPT_SP of course).



Messages sorted by: Reverse Date, Date, Thread, Author