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

Can't run script in fish shell #73

Closed
stellarhoof opened this issue Jan 27, 2017 · 4 comments
Closed

Can't run script in fish shell #73

stellarhoof opened this issue Jan 27, 2017 · 4 comments
Labels

Comments

@stellarhoof
Copy link

stellarhoof commented Jan 27, 2017

Trying to execute the resulting script from Shdo using fish shell on OS X fails with

exec: Exec format error
The file '{tmpfile}' is marked as an executable but could not be run by the operating system.

Specifying the shell after a shebang solves it. Maybe $SHELL can be used or /bin/sh as a fallback?

@justinmk
Copy link
Owner

Maybe $SHELL can be used or /bin/sh as a fallback?

Fall back under what conditions? What is :set shell ? All Z! does is call :!, it's assumed you've configured 'shell', 'shellcmdflag', etc appropriately.

@stellarhoof
Copy link
Author

:! works as expected.
'shell' == $SHELL == /usr/bin/local/fish and shellcmdflag == -c

The problem is that the executable file produced by Shdo itself is run with :!, which fish doesn't like.

This is what I'm talking about https://wiki.archlinux.org/index.php/Talk:Fish.

@justinmk
Copy link
Owner

justinmk commented Jan 28, 2017

:! works as expected.

How is that possible? :!% in the script buffer works for you?

Anyways, let me know if the latest version works for you now.

@stellarhoof
Copy link
Author

No I meant that :! (not :!% on the script buffer) works for me. As in :!cat foo.

The last commit fixes it indeed. Thank you very much!

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

No branches or pull requests

2 participants