www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/18/17:35:29

From: towb AT gmx DOT net (Tobias Weber)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: cat.exe: standard output: Invalid argument (EINVAL) ??
Date: 18 Apr 1999 22:07:55 GMT
Organization: Customer of UUNET Deutschland GmbH, Dortmund, Germany
Lines: 27
Message-ID: <371a575f.4543902@personalnews.de.uu.net>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 990418141621 DOT 22615g-100000 AT is>
NNTP-Posting-Host: 149.228.43.2
X-Newsreader: Forte Free Agent 1.11/32.235
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Sun, 18 Apr 1999 14:16:39 +0300 (IDT), Eli Zaretskii
<eliz AT is DOT elta DOT co DOT il> wrote:

>> I've got a perl wich does `cat $fn` (backticks!) and works perfectly
>> well on linux.
>> On w95 all I get is
>>  cat.exe: standard output: Invalid argument (EINVAL)
>If you invoked the above command from the ported Bash, then the most
>probable reason is that your TMPDIR variable in the environment is not
>defined or points to an invalid directory.  Bash needs that because
>`command` expansion goes through a temporary file.

It was plain DOS7 command.com, but I just tried bash and it's the same
error. I think the backtick expansion is done by perl..what exactly
does the message mean, anyway?!

>This is explained in the DJGPP FAQ list, section 6.11, btw.

Well, I read the FAQ, but not that section 'cause I didn't use bash..

btw everything works when I replace `cat $fn` with `type $fn` from old
command.com (but type is sth completely different on linux, where I
want to run the script, too) ..so it may have to do with the way cat
reads/writes data...

regards,
  Tobias Weber

- Raw text -


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