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: Chet Ramey
Subject: Re: [PATCH v2 5/8] builtins/source: parse the -i option
Date: Mon, 20 May 2024 14:49:50 -0400
User-agent: Mozilla Thunderbird

On 5/17/24 11:40 AM, Robert Elz wrote:

Now of course, everyone is going to say "too difficult to do that all
the time", and they'd be right.  So the one extra feature would be that
if used without the "file" arg (which is normally mandatory), as in
        . -p path-like-value
it would set the default search path for later uses of the '.' command
(and if anyone feels that being able to read back what has been set, an
additional option could make that info appear on stdout, and source
nothing).

There is nothing different between that and setting another variable,
one that's user-visible like BASH_SOURCE_PATH, except that it's more
obscure and fragile.

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

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

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