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

Re: PATCH: perform expansion for precommand modifiers



On Apr 26,  7:45pm, Daniel Shahaf wrote:
}
} Is this worth a NEWS entry?  (not README since the change is backwards
} compatible)

This also fixes this bug reported recently, to wit, quoting a precommand
modifier to protect it from alias expansion did not work correctly:

torch% alias exec='echo foo'
torch% ( exec -c printenv )
foo -c printenv
torch% ( \exec -c printenv )
zsh: command not found: -c

Now:

torch% alias exec='echo foo'
torch% ( exec -c printenv )
foo -c printenv
torch% ( \exec -c printenv )
torch% ( \exec printenv ) 
MANPATH=... and so on



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