bug-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

HERE documents in shellcommands ?


From: David Carmean
Subject: HERE documents in shellcommands ?
Date: Mon, 12 Sep 2005 12:43:35 -0700
User-agent: Mutt/1.4.1i

It appears that cfagent does something funky when it encounters 
HERE documents in shellcommands:

            "/bin/cat  > /tmp/heretest <<IGNORED
    HERE doc test
    foo 
    IGNORED"

gives

    fbsd54-bld1:/tmp> sudo cat heretest 
    HERE doc test
    foo 
    IGNOREDfbsd54-bld1:/tmp> 

However, if I just omit the terminator string, it works:

            "/bin/cat  > /tmp/heretest <<IGNORED
    HERE doc test
    foo
    "

    fbsd54-bld1:/tmp> sudo cat -etv /tmp/heretest
    HERE doc test$
    foo$
    fbsd54-bld1:/tmp> 

Is this the expected behavior?


-- 
David Carmean                                           Network Appliance, Inc
+1-408-822-6565 (ph)                                    495 E. Java Drive
+1-408-822-4577 (fax)                                   Sunnyvale, CA  94089




reply via email to

[Prev in Thread] Current Thread [Next in Thread]