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

do not prefix exec #378

Merged
merged 1 commit into from
Nov 25, 2016
Merged

do not prefix exec #378

merged 1 commit into from
Nov 25, 2016

Conversation

dreyks
Copy link
Contributor

@dreyks dreyks commented Nov 24, 2016

exec is a shell builtin so /usr/bin/env exec results in /usr/bin/env: exec: No such file or directory

@leehambley
Copy link
Member

leehambley commented Nov 24, 2016 via email

@dreyks
Copy link
Contributor Author

dreyks commented Nov 24, 2016

There's no binary named exec. just like there's no test binary. If some shell does not have such builtin it will fail regardless of whether it is prepended by /usr/bin/env or not

@leehambley
Copy link
Member

leehambley commented Nov 25, 2016

There's no binary named exec. just like there's no test binary.

I know, but thanks for the clarification.

If some shell does not have such builtin it will fail regardless of whether it is prepended by /usr/bin/env or not

Couldn't find that in the POSIX spec, maybe you can. The command map exists for mapping commands where the defaults don't suit you.

@leehambley leehambley closed this Nov 25, 2016
@dreyks
Copy link
Contributor Author

dreyks commented Nov 25, 2016

well, i don't completely understand why did you close this
right now if you use :exec it will get prepended by prefix and will fail for everyone. with my change it will work for those shells that have exec

@dreyks
Copy link
Contributor Author

dreyks commented Nov 25, 2016

oh you updated your comment. i'll look at some shells and will give you examples

@leehambley
Copy link
Member

oh you updated your comment. i'll look at some shells and will give you examples

Sorry, mis-clicked before I'd finished answering your feedback.

@dreyks
Copy link
Contributor Author

dreyks commented Nov 25, 2016

this is what i found

http://pubs.opengroup.org/onlinepubs/007904875/idx/sbi.html

not completely sure this is what you mean but seems like every posix-compliant shell has to implement these

@leehambley leehambley reopened this Nov 25, 2016
@leehambley
Copy link
Member

Good find, according to Wikipedia:

Originally, the name "POSIX" referred to IEEE Std 1003.1-1988, released in 1988. The family of POSIX standards is formally designated as IEEE 1003 and the international standard name is ISO/IEC 9945.

So the document you linked was correct.

@leehambley
Copy link
Member

leehambley commented Nov 25, 2016

Please update this PR with an entry in the CHANGELOG and to credit yourself, and I'll be happy to merge it. Thanks for your patience.

Edit: or let me know that you don't want to be credit, and just fix the changelog and I'll merge it

@dreyks
Copy link
Contributor Author

dreyks commented Nov 25, 2016

🍏

updated my journal Changelog

@leehambley leehambley merged commit 20df6cc into capistrano:master Nov 25, 2016
jsonn pushed a commit to jsonn/pkgsrc that referenced this pull request Mar 20, 2017
## [1.12.0][] (2017-02-10)

### Breaking changes

  * None

### New features

  * Add `SSHKit.config.default_runner_config` option that allows overriding default runner configs.

## [1.11.5][] (2016-12-16)

### Bug fixes

  * Do not prefix `exec` command
    [PR #378](capistrano/sshkit#378) @dreyks

## [1.11.4][] (2016-11-02)

  * Use string interpolation for environment variables to avoid escaping issues
    with sprintf
    [PR #280](capistrano/sshkit#280)
    @Sinjo - Chris Sinjakli
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.

2 participants