Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OSH] Bash incompatibility: exec does not accept -a #1914

Open
kseistrup opened this issue Apr 6, 2024 · 0 comments
Open

[OSH] Bash incompatibility: exec does not accept -a #1914

kseistrup opened this issue Apr 6, 2024 · 0 comments

Comments

@kseistrup
Copy link

Oils v0.21.0 (commit cc2f683):

$ osh -c 'exec -a foo date'
  exec -a foo date
       ^~
[ -c flag ]:1: 'exec' doesn't accept flag -a

From man bash:

      exec [-cl] [-a name] [command [arguments]]
         ⋮
              an  empty environment.  If -a is supplied, the shell passes name
              as the zeroth argument to the executed command.  If command can‐

Bash scripts that use exec -a will fail.

Another bash incompatibility is the missing ulimit command (see #280).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant