www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/02/07/12:33:58

From: "Mark E." <snowball3 AT bigfoot DOT com>
To: djgpp-workers AT delorie DOT com
Date: Wed, 7 Feb 2001 12:24:18 -0500
MIME-Version: 1.0
Subject: Re: Probably a bug in bash 2.04
Message-ID: <3A813E72.25295.91ED7B@localhost>
References: <145AEC0032A AT HRZ1 DOT hrz DOT tu-darmstadt DOT de>
In-reply-to: <Pine.SUN.3.91.1010207155537.4599b-100000@is>
X-mailer: Pegasus Mail for Win32 (v3.12c)
Reply-To: djgpp-workers AT delorie DOT com

> Mark, was this port built with the modified version of dosexec.c or with 
> the stock version from djdev203.zip?

A modified version of dosexec.c, but the modification makes no difference. I 
tested with a trivial program with 2.03 with LFN=Y and LFN=N. Note that a 
message will print in both cases, but the script will only run when LFN=Y.

doscript.c:
#include <process.h>
#include <errno.h>

int main()
{
  spawnl(P_WAIT, "script.sub", "script.sub", 0);
  if (errno)
    perror("script.sub");
  return 0;
}

script.sub:
#! /bin/sh

echo "ran script.sub"


It seems that when LFN=N only programs that end in .exe, .bat, .etc can be 
run.

Mark

- Raw text -


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