[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: A possible bug with 4.2 (latest)
From: |
Chet Ramey |
Subject: |
Re: A possible bug with 4.2 (latest) |
Date: |
Tue, 29 Mar 2011 14:19:21 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 |
On 3/29/11 2:09 PM, George Goffe wrote:
> Howdy,
>
> I am experiencing a problem with sourcing a file. It's really my bashrc but
> I want to keep the corporate version separate.
>
> What I'm seeing:
>
> 1) make a change to .grgrc
> 2) enter . .grgrc
> 3) usually use the changed "code".
>
> This change is not appearing. My .grgrc is almost 3000 lines of code...
> mostly little functions that I would otherwise write separate scripts for.
I can't reproduce your issue with a trivial test:
$ . ./sample
4.2.8(75)-maint
$ type foo
foo is a function
foo ()
{
echo foo
}
$ ce sample [MODIFY SAMPLE HERE]
$ . ./sample
4.2.8(75)-maint
$ type foo
foo is a function
foo ()
{
echo bar
}
Maybe run `set -x' before sourcing the modified file to see what's going on.
Chet
--
``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/