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

CLI broken on fish shell #426

Closed
drobakowski opened this Issue Dec 14, 2016 · 4 comments

Comments

Projects
None yet
3 participants
@drobakowski

drobakowski commented Dec 14, 2016

It seems as digdag is not compatible with fish shell at the moment. Trying to run digdag from a fish shell results in the following error message:

Failed to execute process '/Users/david/bin/digdag'. Reason:
exec: Exec format error
The file '/Users/david/bin/digdag' is marked as an executable but could not be run by the operating system.

I'm running on macOS Sierra:

Darwin 16.3.0 Darwin Kernel Version 16.3.0: Thu Nov 17 20:23:58 PST 2016; root:xnu-3789.31.2~1/RELEASE_X86_64 x86_64

Running digdag on my system with a bash shell works fine.

@hiroyuki-sato

This comment has been minimized.

Contributor

hiroyuki-sato commented Dec 15, 2016

You can use java -jar /path/to/digdag instead of digdag command on the fish environment.

The digdag designed to run as single binary on Windows and Unix platform.
It is using a hackky technique(It use Embulk too. )

It doesn't use shebang '#!'. Maybe that's why it raise that error.

Please see this slide (especially page 41)
http://www.slideshare.net/frsyuki/fighting-against-chaotically-separated-values-with-embulk/40

@hiroyuki-sato

This comment has been minimized.

Contributor

hiroyuki-sato commented Dec 15, 2016

Error case (no shebang)

echo "test"
./test.sh
Failed to execute process './test.sh'. Reason:
exec: Exec format error
The file './test.sh' is marked as an executable but could not be run by the operating system.

OK case

#!/bin/sh
echo "test"
./test.sh
test

Environment

  • FISH_VERSION: 2.4.0
  • OS: macOS 10.12.1
@drobakowski

This comment has been minimized.

drobakowski commented Mar 8, 2017

Thanks @hiroyuki-sato for your fast response! I've tried a fresh install of digdag through brew and it seems to be fixed already with the newest version.

@ramazanarslan

This comment has been minimized.

ramazanarslan commented Nov 15, 2018

when fish terminal open, you can use bash example.sh instead of example.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment