Mail Archives: djgpp/1998/10/04/10:01:13
Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> writes:
> On 3 Oct 1998 M DOT A DOT Bukin AT inp DOT nsk DOT su wrote:
>
> > It can be related to `SYSROOT' environment variable. At least, if I
> > set SYSROOT to the DJDIR, bash can not find /dev/null, but can find
> > /bin/sh. And if I remove SYSROOT var., bash finds /dev/null, but not
> > /bin/sh.
>
> I cannot reproduce this with bash.exe from bsh1147b.zip. Bash works
> for me with or without SYSROOT.
I tried the following:
djgpp 20:29:17> echo $SYSROOT
djgpp 20:29:33> echo test > /dev/null
djgpp 20:29:42> /bin/echo test
bash: /bin/echo: No such file or directory (ENOENT)
djgpp 20:30:51> SYSROOT=$DJDIR
20:31:01> echo $SYSROOT
d:/comp/djgpp
20:31:07> echo test > /dev/null
bash: /dev/null: No such file or directory (ENOENT)
20:31:14> /bin/echo test
test
Here are attributes of bash:
> cd $DJDIR/bin; ls -l bash.exe
-rwxr-xr-x 1 mike dos 403968 Sep 27 1997 bash.exe
> cd $DJDIR/manifest; cat bsh1147b.ver
bsh1147b GNU bash 1.14.7 for DJGPP v2
I recall that long ago there was a thread about problem with
`/dev/null' in bash and the result was that support for $SYSROOT in
bash breaks support for `/dev/null' (which comes from libc?). And
bash was fixed. But maybe it was something else, I don't remember for
sure.
--
Michael Bukin
- Raw text -