Skip Menu |
Report information
Id: 1167
Status: resolved
Priority: 0/
Queue: perl5

Owner: Nobody
Requestors: kstar [at]

Operating System: (no value)
PatchStatus: (no value)
Severity: medium
Type: library
Perl Version: (no value)
Fixed In: (no value)

Date: Wed, 4 Aug 1999 10:58:24 -0400
From: "Kurt D. Starsinic" <kstar [...]>
To: perlbug [...]
Subject: glob() and STDIN
Download (untitled) / with headers
text/plain 663b
The following code works for perl5.005_03 on Linux (I haven't tested any other releases on Linux), but fails on every other OS I've tried: close STDIN; print glob('*'); On Linux, this prints a list of filenames. On 5.00x_xx/any other OS, it prints nothing until I comment out the `close STDIN'. Any ideas? Peace, * Kurt Starsinic ( --------- Technical Specialist * | `If we knew what it was we were doing, it wouldn't be called | | research, would it?' -- Albert Einstein | Institute for Scientific Information
To: "Kurt D. Starsinic" <kstar [...]>
Cc: perl5-porters [...]
Subject: Re: [ID 19990804.002] glob() and STDIN
Date: Wed, 04 Aug 1999 11:26:34 -0400
From: Mark-Jason Dominus <mjd [...]>
Download (untitled) / with headers
text/plain 262b
Show quoted text
> Any ideas?
Many programs on many versions of Unix will fail in bizarre ways, or even dump code, if you exec them with stdin or stdout closed. /bin/csh may be one of these. It is much safer and more portable to use open STDIN, '/dev/null'; instead.
glob() is now internal.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at