bug-bash
[Top][All Lists]
Advanced

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

Re: [PATCH v2 5/8] builtins/source: parse the -i option


From: Matheus Afonso Martins Moreira
Subject: Re: [PATCH v2 5/8] builtins/source: parse the -i option
Date: Mon, 20 May 2024 17:51:36 +0000

> Or even
>
>     PATH=${BASH_SEARCH_PATH-$PATH} . file
>
> without the need to add any options to . or to source.

If you do that, you'll interfere with command search
in the sourced file. They will not be able to find the
programs that would normally be in the PATH if the
variable is overridden prior to sourcing the script.

> But maybe that too pedestrian?

I don't know about "pedestrian"
but it's certainly not equivalent
to the proposed solution.



reply via email to

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