On Nov 21, 2007 3:56 PM, Gonzalo Garramuño <[EMAIL PROTECTED]> wrote:
> Salvatore Iovene wrote:
> >
> > A bug? Thanks.
> >
>
> Nope.
>
> $ echo $HOSTNAME
> aura1
>
> $ sh -c "echo \$HOSTNAME"
>
> $ bash -c "echo \$HOSTNAME"
> aura1
>
> Basically, HOSTNAME is a variable that is set by some shells like bash
> only, but cmake for speed and consistency runs commands using the most
> basic unix shell (ie. sh), which does not set that variable by default.

Thanks. How can I work this around? I really need to get the HOSTNAME in a
shell-independent way. Maybe there's a way to execute the `hostname`
command?
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to