[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating files/directories with numeric names



On Wed, Sep 19, 2007 at 08:43:55AM -0500, Erich Schroeder wrote:
> I'm on ext3, and I had not thought of trying other methods:
> 
> [erich@harpo ~]$ echo test > 9test
> [erich@harpo ~]$ cat 9test
> test
> [erich@harpo ~]$ rm 9test
> [erich@harpo ~]$ echo test > 9
> bash: 9: No such file or directory
> [erich@harpo ~]$ cat 9
> cat: 9: No such file or directory
> [erich@harpo ~]$
> 
> Same result, can't make files that have all-numeric names.

Still could be something wierd with bash (and I'd go with Jeff's
suggestion of checking the system from a live CD).

Trying something other than bash might be a good idea...

perl -MFileHandle -le 'if (my $f=new FileHandle "9", O_CREAT|O_RDWR) {' \
    -e 'print "OK"; $f->close(); unlink "9"; } else { die "Failed: $!" }'

I get "OK" from that on my system.

Steve
-- 
steve@silug.org           | Southern Illinois Linux Users Group
(618)624-4440             | See web site for meeting details.
Steven Pritchard          | http://www.silug.org/

-
To unsubscribe, send email to majordomo@luci.org with
"unsubscribe luci-discuss" in the body.