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

Re: optimal expansions?





On 2024-04-21 05:23, Roman Perepelitsa wrote:
Seems we want '-r' most of the time.  And the '--' should always be there.
The missing `-r` is a bug. It should be there. The `--` in this case
is optional because the positional argument cannot start with a dash.
But the '--' is good standard practice, yes?  It's like putting on your turn signal even when there's nobody behind you.  As it was explained to me, it's easier to do it than to think about whether you need to do it or not.  Just make it a habit.  Meanwhile I have 313K of code that's all built around my understanding that 'split on newlines' means add newlines where you want to split :-(  ... so I'll slowly go thru it all and get that sorted out -- which will remove a hundred '\n's which will in turn permit 'print -r'. 




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