bug-bash
[Top][All Lists]
Advanced

[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



reply via email to

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