delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2002/07/13/17:56:46

From: Martin Str|mberg <ams AT ludd DOT luth DOT se>
Message-Id: <200207132039.g6DKdYf05422@speedy.ludd.luth.se>
Subject: Possible bash problem
To: DJGPP-WORKERS <djgpp-workers AT delorie DOT com>
Date: Sat, 13 Jul 2002 22:39:33 +0200 (CEST)
X-Mailer: ELM [version 2.4ME+ PL78 (25)]
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com

Look at this:

-bash-2.04$ set|grep 'T.*MP'
TEMP=bbb
TMP=aaa
TMPDIR=t:/tmp
-bash-2.04$ env|grep 'T.*MP'
TMPDIR=t:\tmp
TEMP=bbb
TMP=aaa
-bash-2.04$ type env
env is hashed (E:/DJGPP/BIN/env.exe)
-bash-2.04$ ls -la `which bash`
-rwxr-xr-x    1 dosuser  root       573440 Dec 24  2001 /dev/e/DJGPP/BIN/bash.ex
e
-bash-2.04$ set|grep BASH
BASH=e:/djgpp/bin/-bash
BASH_VERSINFO=([0]="2" [1]="04" [2]="7" [3]="1" [4]="release" [5]="i686-pc-msdos
djgpp")
BASH_VERSION='2.04.7(1)-release'


The problem is that TMPDIR's "/" is turned into "\" when an external
program is executed.

This really messes up Unix programs that turn "t:\tmp" into "t:tmp"
because of the \-escape. (The program where I discovered this is perl,
but I don't think it's perl's problem.)

Is that a bug? Or why is it happening? 

Ideas?


Right,

						MartinS

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019