bug-bash
[Top][All Lists]
Advanced

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

Re: [PATCH 2/9] findcmd: parameterize path variable in functions


From: Chet Ramey
Subject: Re: [PATCH 2/9] findcmd: parameterize path variable in functions
Date: Tue, 7 May 2024 10:46:49 -0400
User-agent: Mozilla Thunderbird

On 5/7/24 6:35 AM, Koichi Murase wrote:
For consistency, shouldn't the suggested
feature to change the search path for the script files be implemented
by a similar flag CMDSRCH_XXX?

No, it should be implemented using a call to find_in_path() with the
appropriate path string and flags.

I feel like a feature like BASH_SOURCE_PATH should take less than a
dozen lines of code in source_builtin().

--
``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]