sm-discuss AT lists.ibiblio.org
Subject: Public SourceMage Discussion List
List archive
- From: Eric Sandall <eric AT sandall.us>
- To: SM Discuss <sm-discuss AT lists.ibiblio.org>
- Subject: Re: [SM-Discuss] spell DETAILS format
- Date: Wed, 4 Jan 2006 10:39:17 -0800 (PST)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wed, 4 Jan 2006, Sergey A. Lipnevich wrote:
I really like this "minimal" convention.<snip>
I have a few more to add. I'm trying to use single quotes for strings
that don't have variables inside. I think it saves a few CPU cycles,
although I wouldn't be shocked if it doesn't. I prefer to quote hash sum
values with single quotes to show that they're literals. Finally, I
prefer to use bash magic like "${VAR//search/replace}" instead of
starting an additional process (such as sed or cut) and I always
double-quote these expressions, just in case. Not a big deal if these
don't make it into "convention."
I do similar when I remember, though my regex-fu is weak and
sometimes I regress into sed/cut. I usually don't quote hashsums, but
to each their own. ;)
I also doubt the single-quotes help anything, but I haven't done any
tests and I believe in wishful thinking. :)
- -sandalle
- --
Eric Sandall | Source Mage GNU/Linux Developer
eric AT sandall.us | http://www.sourcemage.org/
http://eric.sandall.us/ | SysAdmin @ Inst. Shock Physics @ WSU
http://counter.li.org/ #196285 | http://www.shock.wsu.edu/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFDvBZWHXt9dKjv3WERAvDlAKCmx/Hfe8AGy5dRf7K3es9Ir2QifACgr6XK
unsxPyompI42d4bAeNMNDTE=
=m2fE
-----END PGP SIGNATURE-----
-
Re: [SM-Discuss] spell DETAILS format,
Sergey A. Lipnevich, 01/04/2006
- Re: [SM-Discuss] spell DETAILS format, Eric Sandall, 01/04/2006
Archive powered by MHonArc 2.6.24.