[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/
[PATCH 3/9] findcmd: define the user library finder function, Matheus Afonso Martins Moreira, 2024/05/05
[PATCH 4/9] bashgetopt: define long option shortener function, Matheus Afonso Martins Moreira, 2024/05/05
Re: [PATCH 4/9] bashgetopt: define long option shortener function, Chet Ramey, 2024/05/08
[PATCH 5/9] builtins/source: refactor file searching function, Matheus Afonso Martins Moreira, 2024/05/05