Re: weird problems persist
- To: debian-amd64@lists.debian.org
- Subject: Re: weird problems persist
- From: Eric Sharkey <sharkey@netrics.com>
- Date: Mon, 02 Feb 2004 10:10:47 -0500
- Message-id: <E1Anfip-0001rn-00@cyclops.netrics.internal>
- In-reply-to: Your message of "Mon, 02 Feb 2004 09:48:28 EST." <E1AnfNE-0001lv-00@cyclops.netrics.internal>
> For some reason, the `uname -s` expands to "Linux Linux" when the
> script is sourced, but only "Linux" on the command line.
>
> mastermind% set -x
> mastermind% source testshell.sh
> + source testshell.sh
> +++ uname -s
> ++ '[' Linux Linux = Linux ']'
> -bash: [: too many arguments
> ++ echo 'This is not Linux.'
> This is not Linux.
Just to clarify, this problem is not limited to the uname command.
Running "make" in /var/yp is failing becuase of a similar construct.
The Makefile does:
test ! -d $(LOCALDOMAIN) && mkdir $(LOCALDOMAIN)
LOCALDOMAIN is `/bin/domainname` so this becomes:
test ! -d `/bin/domainname` && mkdir `/bin/domainname`
but /bin/domainname has double output for some reason, resulting
in:
set -x ; test ! -d `/bin/domainname` && mkdir `/bin/domainname` ; \
cd `/bin/domainname` ; \
true || /usr/bin/make -f ../Makefile ypservers; \
/usr/bin/make -f ../Makefile all
++ /bin/domainname
+ test '!' -d pnylab pnylab
/bin/sh: line 1: test: pnylab: binary operator expected
Eric
Reply to: