[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 8/9] builtins/source: search libraries in library mode
From: |
Koichi Murase |
Subject: |
Re: [PATCH 8/9] builtins/source: search libraries in library mode |
Date: |
Tue, 7 May 2024 19:36:27 +0900 |
2024年5月5日(日) 18:57 Matheus Afonso Martins Moreira
<matheus.a.m.moreira@gmail.com>:
> - filename = search_for_file (list);
> + if (!library_mode)
> + filename = search_for_file (list);
> + else
> + filename = search_for_library (list);
I expected that the source builtin without the flag would also
consider BASH_LIBRARIES_PATH if present, which is more similar to
Chet's suggestion in the POSIX mode [1]. More specifically, the source
builtin first searches for BASH_LIBRARIES_PATH if present, or
otherwise falls back to PATH and the local files. When the flag is
specified, the fallbacks are disabled.
[1] https://lists.gnu.org/archive/html/help-bash/2024-04/msg00022.html
- Re: [PATCH 2/9] findcmd: parameterize path variable in functions, (continued)
- [PATCH 5/9] builtins/source: refactor file searching function, Matheus Afonso Martins Moreira, 2024/05/05
- [PATCH 6/9] builtins/source: define library search function, Matheus Afonso Martins Moreira, 2024/05/05
- [PATCH 7/9] builtins/source: add the -l|--library options, Matheus Afonso Martins Moreira, 2024/05/05
- [PATCH 8/9] builtins/source: search libraries in library mode, Matheus Afonso Martins Moreira, 2024/05/05
- Re: [PATCH 8/9] builtins/source: search libraries in library mode,
Koichi Murase <=
- [PATCH 9/9] variables: define default BASH_LIBRARIES_PATH, Matheus Afonso Martins Moreira, 2024/05/05
Re: [PATCH 0/9] Add library mode to source builtin, Lawrence Velázquez, 2024/05/05