On 14.7. 16:08, Chet Ramey wrote:
On 7/14/20 6:32 AM, Jeffrey Walton wrote:
./audit-libs.sh: line 17: 22929 Segmentation fault      (core dumped)
$(echo "$file" | grep -E "*.so$")

Bash is reporting that a process exited due to a seg fault, but it is
not necessarily a bash process.

As a suggestion: it might be useful if the error message showed the actual command that ran, after expansions. Here it shows the same command each time, and if only one of them crashed, you wouldn't immediately know which one it was. The un-expanded source line is in any case available in the script itself.

The message also seems to be much briefer for an interactive shell or a -c script. At least the latter ones might also benefit from the longer error message.

--
Ilkka Virta / itvi...@iki.fi

Reply via email to