tech-toolchain archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: nbawk: non-terminated string echo x86_6... at source line 73
On 21 November 2017 at 14:04, Christos Zoulas <christos%astron.com@localhost> wrote:
> Try this:
$ MAKE=nbmake PATH=/home/netbsd/hg/tools/bin:$PATH /bin/bash ./tst
mips
however, strangely, with #!/bin/sh, it results in:
$ MAKE=nbmake PATH=/home/netbsd/hg/tools/bin:$PATH /bin/sh ./tst
./tst: line 4: .: sets.subr: file not found
I suspect these variables someone added to my environment:
BASH_FUNC_module%%=
BASH_FUNC_scl%%=
Since cut/pasting the actual command:
cd /home/netbsd/hg/src/distrib/sets &&
DESTDIR=/home/netbsd/hg/amd64/destdir.amd64 MACHINE=amd64
MACHINE_ARCH=x86_64 AWK=/home/netbsd/hg/tools/bin/nbawk
CKSUM=/home/netbsd/hg/tools/bin/nbcksum
DB=/home/netbsd/hg/tools/bin/nbdb EGREP=grep\ -E HOST_SH=/usr/bin/sh
MAKE=/home/netbsd/hg/tools/bin/nbmake
MKTEMP=/home/netbsd/hg/tools/bin/nbmktemp
MTREE=/home/netbsd/hg/tools/bin/nbmtree
PAX=/home/netbsd/hg/tools/bin/nbpax COMPRESS_PROGRAM=gzip GZIP=-n
PKG_CREATE=/home/netbsd/hg/tools/bin/nbpkg_create
SED=/home/netbsd/hg/tools/bin/nbsed
TSORT=/home/netbsd/hg/tools/bin/nbtsort\ -q /usr/bin/sh ./maketars -S
-d /home/netbsd/hg/amd64/destdir.amd64 -M
/home/netbsd/hg/amd64/destdir.amd64/METALOG.sanitised -N
/home/netbsd/hg/src/etc -L base -t
/home/netbsd/hg/amd64/releasedir/amd64/binary/sets
also works, I'm wondering about the environment.
For what its worth, forcing HOST_SH to /bin/bash didn't help.
> $ cd /usr/src/distrib/tests
> $ cat << EOF > tst
> #!/bin/sh
>
> rundir=.
> . sets.subr
>
> arch_to_cpu mipsel
> EOF
> $ chmod +x tst
> $ ./tst
> mips
>
> christos
>
Home |
Main Index |
Thread Index |
Old Index