[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: editfiles missing the profound function?
From: |
Brendan Strejcek |
Subject: |
Re: editfiles missing the profound function? |
Date: |
Wed, 23 Feb 2005 11:12:19 -0600 |
User-agent: |
Mutt/1.5.6+20040907i |
lists@onerussian.com wrote:
> On Wed, Feb 23, 2005 at 10:42:24AM -0600, Brendan Strejcek wrote:
> > In any case, this has been what I have been doing to solve this problem
> > recently. It's still two lines, but I think it is more readable than
> > anything else I have seen.
>
> > DeleteLinesMatching "^somevar = .*$"
> > AppendIfNoSuchLine "somevar = somevalue"
>
> but this kicks in on every run, doesn't it?
cfagent edits a buffer-copy of the file. When done editing, it only
replaces the file on disk if the two differ. Thus, if your edit results
in the same file, nothing is actually changed, including file metadata
such as timestamps.
- editfiles missing the profound function?, Yaroslav Halchenko, 2005/02/23
- Re: editfiles missing the profound function?, Jamie Wilkinson, 2005/02/23
- Re: editfiles missing the profound function?, Mark Burgess, 2005/02/23
- Message not available
- Message not available
- Re: editfiles missing the profound function?, Yaroslav Halchenko, 2005/02/23
- Re: editfiles missing the profound function?, Brendan Strejcek, 2005/02/23
- Re: editfiles missing the profound function?, lists, 2005/02/23
- Re: editfiles missing the profound function?, Adams, Russell L., 2005/02/23
- Re: editfiles missing the profound function?,
Brendan Strejcek <=
- Re: editfiles missing the profound function?, lists, 2005/02/23
- Re: editfiles missing the profound function?, Brendan Strejcek, 2005/02/23
- Re: editfiles missing the profound function?, Yaroslav Halchenko, 2005/02/23
Re: editfiles missing the profound function?, Yaroslav Halchenko, 2005/02/23