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 16:26:11 -0400
User-agent: Mozilla Thunderbird

On 5/20/24 4:17 PM, Matheus Afonso Martins Moreira wrote:
And yet people are so opposed to the option that they want ridiculous
restrictions like `you can never alias source="source -i"'.

Yeah. I already feel like I'm insane for even suggesting it.

People feel strongly, it seems. More strongly than I, at least, guessed.


Because other people don't see the issue the same way you do,
and have their own way of doing things?

I suppose. I tried to argue for my viewpoint but convinced no one.

I had no idea that my prompting discussion would result in this much.

I suppose we've all learned that there are a dozen, all slightly
different, bash library/package managers.

For the record I think `source -p $VAR` is an even better solution
than what I proposed. I can send a patch if necessary.

It has some of the same semantic issues. Does using it disable searching
$PWD? Should it fall back to $PATH? What do you do with a null value? (Yes,
no, same as you do today.) It just avoids introducing a new variable.


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