[darcs-users] review darcs patch: Simplify EXAMPLE.sh.
Eric Kow
kowey at darcs.net
Mon Sep 21 04:55:09 UTC 2009
On Mon, Sep 21, 2009 at 12:34:58 +1000, Trent W. Buck wrote:
> The reason I initially added it was because $PWD is implied state, and
> FP teaches us that state is bad. Specifically, it means that when
> copy-and-pasting parts of a test into a shell, if you forget the cd, it
> all breaks. I also find it less confusing when working with >1 repo.
I tend to use blocks of whitespace for this, for what it's worth.
cd R
blah
cd ..
cd S
bah
cd ..
Even if the last cd.. in a script is useless, I still write it
just to balance the 'bracket'
> Also, the rationale for using one-letter directories and files (instead
> of the older "temp1" convention) is that they're shorter and about as
> meaningful. The implied convention is:
>
> repositories: R, S, ...
> directories: d, e, ...
> files: f, g, ...
>
> One bug in this convention is that you can't express 3 dirs and a file
> in a single dir.
And for cases like this, I switch to a modest variant of the convention
d1, d2, d3, f
--
Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
PGP Key ID: 08AC04F9
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
URL: <http://lists.osuosl.org/pipermail/darcs-users/attachments/20090921/81c4b6cd/attachment.pgp>
More information about the darcs-users
mailing list