Skip to content

Added the ability to specify your own shell, closes #418#429

Merged
odino merged 1 commit into2.5.xfrom
specify-command-executor
May 12, 2021
Merged

Added the ability to specify your own shell, closes #418#429
odino merged 1 commit into2.5.xfrom
specify-command-executor

Conversation

@odino
Copy link
Copy Markdown
Collaborator

@odino odino commented May 12, 2021

You can now specify a different shell to execute system commands
with through ABS_COMMAND_EXECUTOR:

`echo \$0` # bash
env("ABS_COMMAND_EXECUTOR", "sh -c")
`echo \$0` # sh

Ideally we would have liked to implement this through:

require('@runtime').shell = "sh -c"

but it's much easier to do so through an environment variable.

You can now specify a different shell to execute system commands
with through `ABS_COMMAND_EXECUTOR`:

```sh
`echo \$0` # bash
env("ABS_COMMAND_EXECUTOR", "sh -c")
`echo \$0` # sh
```

Ideally we would have liked to implement this through:

```
require('@runtime').shell = "sh -c"
```

but it's much easier to do so through an environment variable.
@odino odino added this to the 2.5.x milestone May 12, 2021
@odino odino merged commit 59f4707 into 2.5.x May 12, 2021
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

Successfully merging this pull request may close these issues.

1 participant