Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
oguz-ismail
1y ago
0 comments
Share
`#!/bin/sh' makes this less portable than it could be, if /bin/sh doesn't exists on my system it won't work, for example. Remove that line and it'll work everywhere.
0 comments
default
newest
oldest
teddyh
1y ago
If /bin/sh does not exist, what in the world is executing the shell script?
oguz-ismail
OP
1y ago
The shell, of course. It just might not be (because it doesn't have to be) located in /bin.
teddyh
1y ago
I’m pretty sure that /bin/sh is mandated by POSIX.
1 more reply
j
/
k
navigate · click thread line to collapse