bug-bash
[Top][All Lists]
Advanced

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

Re: [PATCH 0/9] Add library mode to source builtin


From: Chet Ramey
Subject: Re: [PATCH 0/9] Add library mode to source builtin
Date: Tue, 7 May 2024 10:36:00 -0400
User-agent: Mozilla Thunderbird

On 5/5/24 11:55 PM, Matheus Afonso Martins Moreira wrote:
Such is the extent to which I concur that I find even -l to be irritating.

Well, I don't concur at all. I think it's just the opposite.
I think it's actually the source builtin which incorrectly
implies that all sourced scripts are executables
when they might actually be libraries and modules.

It implies this because the source code for source prefers
files with the executable bit set

It does not. It searches for readable files. Look at
findcmd.c:find_path_file().

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




reply via email to

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