4 ms·
The Linux kernel won't, but most shells happily will. echo 'ls' > test.sh chmod +x test.sh ./test.sh # Works just fine, no header and since the
by jjnoakes 8y ago
The Linux kernel won't, but most shells happily will.
echo 'ls' > test.sh
chmod +x test.sh
./test.sh # Works just fine, no header
and since the C library routine "system()" executes the command via /bin/sh, system("./test.sh") works fine too.