[Coco] Nitros9 make errors

Johann Klasek johann+coco at klasek.at
Wed Jul 17 05:55:04 EDT 2013


On Mon, Jul 15, 2013 at 05:58:58PM -0400, Lothan wrote:
> From: Gene Heskett
> Sent: Monday, July 15, 2013 8:56 AM
> To: coco at maltedmedia.com
> Subject: Re: [Coco] Nitros9 make errors
> 
> >Here I think we have a linux or bash bug.
> >
> >1. I have an empry dsks subdir in my last build.
[..]
> >So while this doesn't work:
> >gene at coyote:/opt/nitros9$ export DSKDIR $(NITROS9DIR)/dsks
> >NITROS9DIR: command not found
> >bash: export: `/dsks': not a valid identifier
> >gene at coyote:/opt/nitros9$ ls dsks
> >gene at coyote:/opt/nitros9$ cd ..
> >gene at coyote:/opt$ export DSKDIR $NITROS9DIR/dsks
> >bash: export: `/opt/nitros9/dsks': not a valid identifier
[..]
> If you're at the bash prompt, $NITROS9DIR references the NITROS9DIR 
> environment variable whereas $(NITROS9DIR) references the output from the 
> NITROS9DIR command (if any). I think this explains the results you are 
> seeing above:
> 
> gene at coyote:/opt/nitros9$ export DSKDIR $(NITROS9DIR)/dsks
> NITROS9DIR: command not found
> 
> gene at coyote:/opt$ echo $NITROS9DIR
> /opt/nitros9

$(NITROS9DIR)
is the Makefile syntax whereas
$NITROS9DIR
or
${NITROS9DIR}
are common for various types of shells.

Don't try to copy&paste from a Makefile into a shell without doing the
expansion make would do.


Johann

-- 
The dragon on my side: http://klasek.at/hc/dragon/



More information about the Coco mailing list