]> granicus.if.org Git - strace/commitdiff
strace.1.in: add a note about tracing of scripts without shebang
authorEugene Syromyatnikov <evgsyr@gmail.com>
Wed, 28 Feb 2018 17:17:26 +0000 (18:17 +0100)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 6 Mar 2018 23:52:08 +0000 (23:52 +0000)
* 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
strace.1.in

index 3595a69bc50b3715c358be0b0aadbe67169de4aa..b5eb772ab00190d718fc24d862aa6f1122fe289d 100644 (file)
@@ -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