Date: Wed, 17 Sep 1997 12:49:03 +0300 (IDT) From: Eli Zaretskii To: "Peter J. Farley III" cc: djgpp AT delorie DOT com Subject: Re: Suggestion for future DJGPP development -- depend on bash In-Reply-To: <341f246b.3479011@snews.zippo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Wed, 17 Sep 1997, Peter J. Farley III wrote: > I'm curious, though -- in what cases did bash's sysroot and //d/dir > trick *not* work? The problem is that, apart of Bash, the rest of DJGPP (and non-DJGPP programs) don't understand this syntax, so Bash has to translate this back to the DOS d:/dir form. But for this, Bash should know which arguments are filenames and which aren't, which is hard. So Bash does the conversion in all such cases. A frequent case where this logic fails is with Sed scripts which usually include slashes. Another problem is that this conversion couldn't be done for Bash internal commands such as `echo', because it would again break some Unix scripts which use `echo' to transform variable names (as in "echo $foo | sed -e ..."). Enabling the conversion for external commands only is better, but it doesn't always work either, e.g., when the echoe'ed string is used as part of command line passed to a program. In short, it's a mess.