[CUWiN-Dev] Re: [CUWiN-Commits] r2664 - in cuw/trunk/src/boot-image: . steps.d

Chase Phillips shepard at ameth.org
Thu Feb 3 13:36:00 CST 2005


On Thu, 3 Feb 2005, Bryan Cribbs wrote:

> * Chase Phillips <shepard at ameth.org> :
> > Oh?  I use dashes in subroutine names in dhcpselect and so do the
> > /etc/sh-incl/* files.  Can you provide an example of the error you saw for
> > archive's sake?
>
> They work fine when run under both sh and bash-2.05b.0 in NetBSD,
> however, for portability, apparently one shouldn't use them.
> On the Linux box in question, /bin/sh was a symlink to bash-2.05b.0.
>
> $ cat > test.sh <<EOF
> . #!/bin/sh
> .
> . subr-with-hyphens ()
> . {
> .
> .     echo "Hello";
> . }
> . EOF
> $ chmod u+x test.sh
> $ ./test.sh
> ./test.sh: line 6: `subr-with-hyphens': not a valid identifier
> $

Ahh nuts!

Chase


More information about the CU-Wireless-Dev mailing list