[Bug 2471] "match exec" prepends "exec" to its command

bugzilla-daemon at bugzilla.mindrot.org
Thu, 22 Oct 2015 04:11:00 -0000

--- Comment #2 from Richard E. Silverman <res at qoxp.net>
---
> Well it assumes the user's shell supports a particular command syntax
that's specified by SuSv2:
>
http://pubs.opengroup.org/onlinepubs/007908799/xcu/chap2.html#tag_001_014_006
>
> which fish does seem to actually have:
> http://fishshell.com/docs/current/commands.html#exec

I did show in my initial report with an example, actually, that fish
does *have* an "exec" command --
it just doesn't have quite the required behavior. Though I think it's
questionable to require the
shell to support any specific command set, SuSv2 notwithstanding.

> Is the fish behaviour version specific?

I'm afraid I don't know; it happens with the RHEL6 fish 2.1.2, in any
event.

--
  Richard