-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tuesday 07 August 2007, Markus Fischer wrote:> Hi,
>
> I''m using the "delete_lines" definition from
> http://reductivelabs.com/trac/puppet/wiki/SimpleTextRecipes . However,
> when I use it to remove a line with the pattern "/proc/kmsg" I
need to
> escape the slashes for sed/grep and so I end up with
"\/proc\/kmsg", but
> then I get this notices in the log of puppetmaster:
>
> Aug 7 08:27:58 mngr01 puppetmasterd[26482]: Unrecognised escape
> sequence ''\/'' in file
/etc/puppet/manifests/default_nodes.pp at line 121
>
> I get this every time I connect a client to the server. On the other
> side, it just works, the remote execution works fine.
>
> Is this some internal regexp-parsing by puppetmaster? What would be the
> proper syntax to not have this messages?
Hallo Markus!
If you want backslashes in your output, you will have to escape them with
another backslash:
"\\/proc\\/kmsg"
Currently the Escaper is in legacy mode and passes unrecognized sequences on
to the output, but this behaviour is deprecated and will be made stricter in
a future release.
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)
iD8DBQFGuBcp/Pp1N6Uzh0URAiBWAKCYwlnHuTNtv68gLtVrvZItIrR8UACcCFsq
imF2ues/F69iXRHtVwPPekA=kgYd
-----END PGP SIGNATURE-----