delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
Date: | Wed, 20 Oct 2004 16:41:53 +0200 |
From: | Manuel Collado <m DOT collado AT aaron DOT ls DOT fi DOT upm DOT es> |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) |
X-Accept-Language: | en-us, en |
MIME-Version: | 1.0 |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Weird interference igawk / igawk.bat |
NNTP-Posting-Host: | 138.100.10.20 |
Message-ID: | <41767934@news.upm.es> |
X-Trace: | 20 Oct 2004 16:41:56 +0100, 138.100.10.20 |
Lines: | 55 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
The gawk DJGPP distribution contains both igawk and igawk.bat scripts. I've found a nasty interference between them in my XP (Spanish) machine: === using CMD.EXE =============== e:\mcollado>ver Microsoft Windows XP [Versión 5.1.2600] e:\mcollado>igawk <<== FAULT Comando o nombre de archivo erróneo e:\mcollado>sh igawk <<== OK igawk: no program! e:\mcollado> === using bash =============== bash-2.04$ igawk <<== FAULT Comando o nombre de archivo erróneo E:\MCOLLADO> bash-2.04$ sh igawk <<== OK igawk: no program! bash-2.04$ ============================== The problem seems to be that some secondary shell gives preference to 'igawk.bat' over 'igawk' when called simply as 'igawk'. Any one of the following actions, alone, solves the problem: 1. Renaming igawk.bat (say, to 2igawk.bat) 2. Disabling the shebang line '#! /bin/sh' in 'igawk' 3. Calling 'igawk.' instead of 'igawk' in 'igawk.bat' **NOTE: Changing COMSPEC or SHELL environments variables to either 'bash' or 'sh' doesn't help: bash-2.04$ COMSPEC=e:/gnu/djgpp/bin/sh.exe bash-2.04$ igawk /c: /c: No such file or directory (ENOENT) <<== ???? bash-2.04$ Is that a bug in the DJGPP port of bash? Or in the 'system' library function? (if it is used by bash/sh to process the shebang line). Or should I configure my XP machine differently? TIA, -- To reply by e-mail, please remove the extra dot in the given address: m.collado -> mcollado
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |