do not prefix exec#378
Conversation
|
Thanks for the patch!
Do you have a list of which shells have this as a prefix? I'm not sure it's
universal, maybe POSIX spec has more details?
If it's not 100% universal we can't merge this!
(Sent from my Nexus 6, please forgive typos!)
…On Nov 24, 2016 11:09, "Roman Usherenko" ***@***.***> wrote:
exec is a shell builtin so /usr/bin/env exec results in /usr/bin/env:
exec: No such file or directory
------------------------------
You can view, comment on, or merge this pull request online at:
#378
Commit Summary
- do not prefix exec
File Changes
- *M* lib/sshkit/command_map.rb
<https://github.com/capistrano/sshkit/pull/378/files#diff-0> (2)
Patch Links:
- https://github.com/capistrano/sshkit/pull/378.patch
- https://github.com/capistrano/sshkit/pull/378.diff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#378>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABKCMyLImSnhRO1NNquQf0-cnerMxOeks5rBXBSgaJpZM4K7iJt>
.
|
|
There's no binary named |
I know, but thanks for the clarification.
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. |
|
well, i don't completely understand why did you close this |
|
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. |
|
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 |
|
Good find, according to Wikipedia:
So the document you linked was correct. |
|
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 |
|
🍏 updated |
## [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
execis a shell builtin so/usr/bin/env execresults in/usr/bin/env: exec: No such file or directory