Re: Bug in ${const.dollar}( ... )
Jean-Noël Rivasseau <[email protected]> Fri, 11 Dec 2009 08:17:06 -0800
| Newsgroups | gmane.comp.sysutils.cfengine.bugs |
|---|---|
| Message-ID | <[email protected]> |
--===============0273531281== Content-Type: multipart/alternative; boundary=00032555e4324b9c3a047a764159 --00032555e4324b9c3a047a764159 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, /bin/sh is linked to bash on my system. But as I said, this is not the problem: the bug manifests itself before, and cf-engine refuses to launch the shell at all. So it's not a shell problem. On Fri, Dec 11, 2009 at 12:54 AM, Jonathan Clarke <[email protected]>wrote: > On 10/12/2009 17:30, Jean-No=C3=ABl Rivasseau wrote: > >> Hello, I discussed this issue in the help ML before but it really >> appears like it is a bug. >> >> Basically, cf-engine chokes on ${const.dollar}( ... ) in command strings >> passed to returnszero function. However $() in a shell (Bash) can be >> very useful as it triggers a subshell. There is a bug in the parser >> somewhere as this example demonstrates: >> > > Hi, > > What system are you running this on? CFEngine uses "/bin/sh" to execute > shell commands, which may or may not be linked to bash. IIRC the "$()" > doesn't exist in plain 'sh'. > > Jonathan > --00032555e4324b9c3a047a764159 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, /bin/sh is linked to bash on my system. But as I said, this is not the = problem: the bug manifests itself before, and cf-engine refuses to launch t= he shell at all. So it's not a shell problem.<br><br><div class=3D"gmai= l_quote"> On Fri, Dec 11, 2009 at 12:54 AM, Jonathan Clarke <span dir=3D"ltr"><<a = href=3D"mailto:[email protected]">[email protected]</a>></sp= an> wrote:<br><blockquote class=3D"gmail_quote" style=3D"border-left: 1px s= olid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <div class=3D"im">On 10/12/2009 17:30, Jean-No=C3=ABl Rivasseau wrote:<br> <blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, = 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Hello, I discussed this issue in the help ML before but it really<br> appears like it is a bug.<br> <br> Basically, cf-engine chokes on ${const.dollar}( ... ) in command strings<br= > passed to returnszero function. However $() in a shell (Bash) can be<br> very useful as it triggers a subshell. There is a bug in the parser<br> somewhere as this example demonstrates:<br> </blockquote> <br></div> Hi,<br> <br> What system are you running this on? CFEngine uses "/bin/sh" to e= xecute shell commands, which may or may not be linked to bash. IIRC the &qu= ot;$()" doesn't exist in plain 'sh'.<br> <br> Jonathan<font color=3D"#888888"></font><br> </blockquote></div> --00032555e4324b9c3a047a764159-- --===============0273531281== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Bug-cfengine mailing list [email protected] https://cfengine.org/mailman/listinfo/bug-cfengine --===============0273531281==--