help-bash
[Top][All Lists]
Advanced

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

Re: Kludge for handling REPL arithmetic expressions


From: Chet Ramey
Subject: Re: Kludge for handling REPL arithmetic expressions
Date: Tue, 3 Aug 2021 09:26:32 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.12.0

On 8/3/21 3:05 AM, Tapani Tarvainen wrote:

Right: command_not_found_handle() is not called when there's a slash
in the command.

Offhand I can't any reason why it shouldn't, but making that happen
would mean modifying bash source code. A wishlist item, then.

It doesn't because there's no point: a slash in the command name means
the shell doesn't look for it in $PATH. It's a filesystem path.

If you're concerned about whether or not a command name containing a
slash exists, you can check directly.


--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/



reply via email to

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