bug-bash
[Top][All Lists]
Advanced

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

Re: [PATCH v2 1/8] findcmd: parameterize path variable in functions


From: Chet Ramey
Subject: Re: [PATCH v2 1/8] findcmd: parameterize path variable in functions
Date: Tue, 14 May 2024 15:40:31 -0400
User-agent: Mozilla Thunderbird

On 5/13/24 6:37 AM, Matheus Afonso Martins Moreira wrote:
The PATH variable is hard coded in the user command finder function.
Transforming it into an argument allows reusing the file finding logic
with variables other than PATH, making the code more flexible.

This isn't needed given the existence of find_in_path().

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