From: M DOT A DOT Bukin AT inp DOT nsk DOT su To: djgpp AT delorie DOT com Subject: Re: /dev/null problems with bash when rebuild from sources References: Date: 04 Oct 1998 20:48:20 +0700 In-Reply-To: Eli Zaretskii's message of "Sun, 4 Oct 1998 12:42:45 +0300 (IDT)" Message-ID: <20u31k5tgb.fsf@Sky.inp.nsk.su> Lines: 43 X-Mailer: Gnus v5.5/Emacs 19.34 Eli Zaretskii 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