Timeline for What's the difference between "sh command" and run as executable?
Current License: CC BY-SA 4.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 26, 2023 at 9:36 | vote | accept | CommunityBot | ||
| Jan 26, 2023 at 9:24 | answer | added | Chris Davies | timeline score: 2 | |
| Jan 26, 2023 at 8:21 | history | edited | Kusalananda♦ | CC BY-SA 4.0 |
Tiny fixes to title and text
|
| Jan 26, 2023 at 7:57 | comment | added | Artem S. Tashkinov |
This script takes a single argument, refresh interval. Run it as ./raw_io 10 and you'll have ample time to copy its output.
|
|
| Jan 26, 2023 at 6:06 | comment | added | ilkkachu |
for the first part, see Does the shebang determine the shell which runs the script?. For the second, if the program isn't in a directory in PATH, you need to give the path explicitly, e.g. ./raw_io.
|
|
| Jan 26, 2023 at 6:05 | comment | added | Edgar Magallon |
What is the output of ls -l /bin/sh? I assume that has a symlink to dash (another shell)
|
|
| Jan 26, 2023 at 5:52 | history | asked | user330163 | CC BY-SA 4.0 |