bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: error message lacks useful debugging information


From: Phi Debian
Subject: Re: error message lacks useful debugging information
Date: Thu, 5 Oct 2023 07:04:26 +0200

Since we are on the error path (not the perf path) may be the shell could
go the extra miles and try some more diag, has it does for shebang, on
ENOENT, the shell could try to open the a.out, if OK try some other
euristics, at least the trivial one i.e the multilib case that seems the
most disorientating one, the wrong arch (arm on intel) is already correctly
handled, then 'may be' try an ldd (if ldd exist) to mention possible
missing libs, all this leading to yet another 'error message' to be entered
in the NLS...


Or simply a reword of the current implementation
bash: ./Candle: cannot execute: required file not found
bash: ./Candle: cannot execute: Possible arch mismatch or missing shared
libs

Assuming no QA test already match the "required file not found", if so it
would require yet another compat flag...
With this more explicit error message the OP at least have some clue to of
what to look for.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]