Re: Various FreeBSD bits...

David Schmitt
Tue, 13 Nov 2007 09:30:34 -0000

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday 12 November 2007, Sean Chittenden wrote:
> I just drudged through a bit of the archives and see a FreeBSD bits
> floating in there that are of some value, but aren''t on the wiki.
I
> posted a few bits on the wiki regarding some FreeBSD cobbling that
> I''ve done recently and hope that folk find it of use (and start
> posting their useful bits there as well).
>
> http://reductivelabs.com/trac/puppet/wiki/PuppetFreeBSD

Great to see work on other friends in the circus!

I would really like to completely replace the perl in SimpleTextRecipes with
your sed version. The problem here though is, that using \Q and \E I can
reuse $line for the pattern without having to do any (further) escaping.
Flipping through (GNU''s) sed(1) and texinfo I didn''t find an
equivalent here.
So some kind of (automated?) quoting would have to be added. The optimal
solution would be to finally re-write this in ruby, there being able to
easily reuse $line as regex and string without problems.



Also I removed a spurious duplicate single quote, added ^$ anchors and used
grep -q as i did in on SimpleTextRecipes and in my repo.



Thanks for your work!

Regards, David
- --
The primary freedom of open source is not the freedom from cost, but the free-
dom to shape software to do what you want. This freedom is /never/ exercised
without cost, but is available /at all/ only by accepting the very different
costs associated with open source, costs not in money, but in time and effort.
- -- http://www.schierer.org/~luke/log/20070710-1129/on-forks-and-forking
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHOW69/Pp1N6Uzh0URArMGAJ9I9oGQKEbbc6F0NdNmjeL12hTpuACeLpD7
viEnYp1lV98yHOELgDU8JC8=FCsF
-----END PGP SIGNATURE-----