question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The `karate` shell script does not have a shebang line and doesn't work in non POSIX shells such as fish

See original GitHub issue

In fish, for example, the script fails with this error message:

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

The file needs a shebang in the first line:

#!/bin/bash

or:

#!/bin/sh

Or an env based alternative.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ptrthomascommented, May 19, 2020

never mind. just made the change, see commit above for details

0reactions
ptrthomascommented, Aug 24, 2020

0.9.6 released

Read more comments on GitHub >

github_iconTop Results From Across the Web

The `karate` shell script does not have a shebang line and ...
In fish, for example, the script fails with this error message: Failed to execute process './karate'. Reason: exec: Exec format error The file...
Read more >
Shell script working fine without shebang line? Why? [duplicate]
The parent shell, where you entered ./myscript.sh , first tried to execve it, which is where the shebang line would take effect if...
Read more >
Which shell interpreter runs a script with no shebang?
Generally, a shebang-less text file that doesn't start with # is considered as a sh script. Which sh it is will vary though....
Read more >
The problem with fish is that it's not POSIX-compliant, and it ...
A shebang is good practice, but the state of the industry is such that many scripts don't use them (unfortunately). I'm still of...
Read more >
Untitled
... ,some,would,were,like,been,just,her,new,other,them,she,people,these,no,get ... ,should,work,use,through,see,know,did,much,where,years,need,him,back,such ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found