From: pjfarley AT banet DOT net (Peter J. Farley III) Newsgroups: comp.os.msdos.djgpp Subject: Re: Subtle bash/ls/environment bug? Date: Sun, 30 Aug 1998 06:46:22 GMT Message-ID: <35e8f1fc.54529213@news1.banet.net> References: <35e89dbf DOT 32961430 AT news1 DOT banet DOT net> NNTP-Posting-Host: 32.100.112.147 Organization: IBM.NET Lines: 55 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk OK, here is a totally stripped-down demonstration of the problem. And it might still be bash, or it might be something in the file open processing in the library, I don't know which. I will use drive letter h: consistantly here, since that's what I'm using for this development, but any drive will do. The drive in question is VFAT (W95 FAT16) format, if that is important. To test, copy the files below to the directories indicated, then change to directory h:/gcctest/sub1 and execute these commands: ../gcc-abs ../gcc-rel ../gcc-dos Only gcc-abs fails. I hope this is enough to solve the problem. Files: FILE: h:/gcctest/gcc-abs ------------------------------------- #!/bin/sh gcc -I//h/gcctest/sub2 -I../src -I.. -c main.c FILE: h:/gcctest/gcc-dos ------------------------------------- #!/bin/sh gcc -Ih:/gcctest/sub2 -I../src -I.. -c main.c FILE: h:/gcctest/gcc-rel ------------------------------------- #!/bin/sh gcc -I../sub2 -I../src -I.. -c main.c FILE: h:/gcctest/sub1/main.c --------------------------------- #include "level1.h" int main() { return 0; } FILE: h:/gcctest/src/level1.h -------------------------------- /* This is level1.h, included directly from the main.c file */ int level1 = 0; #include "level2.h" FILE: h:/gcctest/src/level2.h -------------------------------- /* This is level2.h, included from the level1.h file */ int level2 = 0; #include FILE: h:/gcctest/sub2/level2.h ------------------------------- /* This is level3.h, included from the level2.h file */ int level3 = 0; ---------------------------------------------------- Peter J. Farley III (pjfarley AT nospam DOT dorsai DOT org OR pjfarley AT nospam DOT banet DOT net)