bug-bash
[Top][All Lists]
Advanced

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

Re: Override an bash variable


From: Chet Ramey
Subject: Re: Override an bash variable
Date: Mon, 04 Aug 2014 11:45:03 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

On 8/2/14, 10:06 PM, Aaron Lewis wrote:
> Hi,
> 
> I'm modifying bash source code and going to add some default variables:
> 
> But I only found "set_if_not", e.g
> set_if_not ("EDITOR", "nano");
> 
> How can I override that variable if it exists?

Since you're already looking through the bash source code, why not take a
look at set_if_not() and see what it does?  You can follow the function
chain from there.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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