[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: shellcommands returns 256, not 0
From: |
Marion Hakanson |
Subject: |
Re: shellcommands returns 256, not 0 |
Date: |
Mon, 19 Apr 2004 16:51:35 -0700 |
David Kewley wrote:
> Unfortunately, IsDir seems to need an explicit directory string, as in
>
> IsDir(/etc)
>
> It seems you can't do:
>
> control:
>
> etc_dir = ( "/etc" )
>
> classes:
>
> have_etc = ( IsDir($(etc_dir)) )
>
> I tried that and also using IsDir("$(etc_dir)"). Neither worked; the class
> never got defined. IsDir(/etc) worked fine.
Try IsDir(${etc_dir}). Unexpected things happen if you use "(" or ")" inside
those builtin functions.
Regards,
--
Marion Hakanson <hakanson@cse.ogi.edu>
CSE Computing Facilities
- shellcommands returns 256, not 0, David Kewley, 2004/04/19
- Re: shellcommands returns 256, not 0, Christian Pearce, 2004/04/19
- Re: shellcommands returns 256, not 0, David Kewley, 2004/04/19
- Re: shellcommands returns 256, not 0, David Kewley, 2004/04/19
- Re: shellcommands returns 256, not 0,
Marion Hakanson <=
- Re: shellcommands returns 256, not 0, Brendan Strejcek, 2004/04/19
- Re: shellcommands returns 256, not 0, Chris Edillon, 2004/04/19
- Re: shellcommands returns 256, not 0, Mark . Burgess, 2004/04/20