From: Eugene Syromyatnikov Date: Wed, 28 Feb 2018 17:17:26 +0000 (+0100) Subject: strace.1.in: add a note about tracing of scripts without shebang X-Git-Tag: v4.22~110 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=07a6399dd6ee7ca68d44d15cf020ea1fe8a15497;p=strace strace.1.in: add a note about tracing of scripts without shebang * strace.1.in (.SH NOTES): Note that tracing of scripts without shebang won't work. Reported-by: Mike Parker Closes: https://github.com/strace/strace/issues/46 --- diff --git a/strace.1.in b/strace.1.in index 3595a69b..b5eb772a 100644 --- a/strace.1.in +++ b/strace.1.in @@ -994,6 +994,18 @@ to the traced process, but a few system calls aren't. Arguably, every instance of such behavior is a kernel bug.) This may have an unpredictable effect on the process if the process takes no action to restart the system call. +.LP +As +.B strace +executes the specified +.I command +directly and does not employ a shell for that, scripts without shebang +that usually run just fine when invoked by shell fail to execute with +.B ENOEXEC +error. +It is advisable to manually supply a shell as a +.I command +with the script as its argument. .SH BUGS Programs that use the .I setuid