www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/19/16:45:34

From: towb AT gmx DOT net (Tobias Weber)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: cat.exe: standard output: Invalid argument (EINVAL) ??
Date: 19 Apr 1999 21:34:29 GMT
Organization: Customer of UUNET Deutschland GmbH, Dortmund, Germany
Lines: 29
Message-ID: <371b947c.652269@personalnews.de.uu.net>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 990419101154 DOT 15835I-100000 AT is>
NNTP-Posting-Host: 149.228.43.21
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 Mon, 19 Apr 1999 10:12:10 +0300 (IDT), Eli Zaretskii
<eliz AT is DOT elta DOT co DOT il> wrote:

>> It was plain DOS7 command.com
>
>Huh?  COMMAND.COM doesn't support the `command` expansion.  You
>probably mean that you invokd Perl from COMMAND.COM, and Perl used
>`cat`, right?
>
>> I think the backtick expansion is done by perl..what exactly
>> does the message mean, anyway?!
>
>It means what it says: some library function got called with an
>invalid argument (probably a NULL pointer).
>
>I suggested to set the TMPDIR environment variable to point to an
>existing, writable directory.  Did you try that?  I think this is your
>problem.

*Please* read my postings before calling me stupid ;-)
In the first one I wrote that "I got a perl (script) which does .." so
the call to cat is in a script (foreach (`cat $fn`) {..). And I
invoked it from command.com, yes. But after your suggestion I tried it
with bash and, as you wrote, with TMP and TMPDIR set to c:\win95\temp.

But, well, I just *set* it, I didn't *export* it...

Allright, thank you, it was me again, now it works, read u,
  Tobias Weber

- Raw text -


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