logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: Re: cannot use darcs to control my systems-config because darcs diff do: msg#00333

Subject: Re: Re: cannot use darcs to control my systems-config because darcs diff doesnt work if darcs repos is (yes, i mean root)
Thies C. Arntzen wrote:
On 2005-01-28 18:09:29 +0100, Sean Perry <shaleh@xxxxxxxxxxxxx> said:

Thies C. Arntzen wrote:

i can see a few ways of making this work -

- change [repos]-old, [repos]-new to old-[repos] and [new]-repos(*)
- change the dash '-' to some other character
- add a double dash to the comman-line of diff so that it "know" that the following args are files/folder (only works with gnu diff)


This form of marking the end of the dash-parameters should be preferred. diff is not too much of an issue, but commands like rm and the like can easily be confused by names like '-force'.


hi,
don't you think that (a) [ "new-repos" instead of "repos-new" ] would be the safest bet as not all utilities are guaranteed to understand '--'.


that gets us around this problem. Not using the double dash when calling shell programs is a bug waiting to happen.

The real answer to the bug is to properly use absolute file names, so /-old would be fine.


<Prev in Thread] Current Thread [Next in Thread>