Op 02-04-18 om 20:41 schreef Chet Ramey:
Thanks for the report. This clearly falls under this clause

"In every other respect, if command_name is not the name of a function, the
effect of command (with no options) shall be the same as omitting command."

in the Posix description of `command'. It should be a one-line fix.

Given that text, commands prefixed with 'command' maybe shouldn't appear twice in xtrace output either. (They don't in any other shell.)

$ bash -xc 'command true'
+ command true
+ true

$ dash -xc 'command true'
+ command true

$ ksh93 -xc 'command true'
+ command true

$ pdksh -xc 'command true'
+ command true

$ yash -xc 'command true'
+ command true

$ mksh -xc 'command true'
+ true

$ zsh -xc 'command true'
+zsh:1> true


- M.

Reply via email to