this post was submitted on 10 Jul 2025
5 points (100.0% liked)
Linux Gaming
19085 readers
1 users here now
Gaming on the GNU/Linux operating system.
Recommended news sources:
Related chat:
Related Communities:
Please be nice to other members. Anyone not being nice will be banned. Keep it fun, respectful and just be awesome to each other.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Does the script file have a shebang? (Something like
#!/bin/sh
as the first line)That's what was missing. Thank you!
So it works now? If so, then glad to be of help.
Just remember that if your shebang points to sh, you can't rely on bash-specific features. The shebang line basically tells the kernel to run your file with the specified program. So, for example, a file with
#!/bin/cat
will print the full contents of the file (including the shebang) and#!/bin/echo
will print the command line. (something like ./script arg1 arg2) As the echo command does not try to interpret arguments as paths, the content of the script would be ignored in that case.