Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

(solved) win32 ntfs stat / -f -s -x ... on filename starting with < performs wildcard expansion / glob

by Anonymous Monk
on May 01, 2013 at 10:30 UTC ( [id://1031544]=perlquestion: print w/replies, xml ) Need Help??

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

solved

Um, wow :)

$ md tempor $ cd tempor $ ls -loanh "<p" ls: <p: Invalid argument $ dir /b "<p" File Not Found $ echo > last_name_p $ ls -loanh "<p" ls: <p: Invalid argument $ dir /b "<p" last_name_p $ perl -le " print -s shift" last_name_p 13 $ perl -le " print -s shift" "<p" 13

Now "dir" will accept "*p" but perl stat won't, but perl stat does wildcard with "<p"

weird :)

update: appears to be a case of win32 doing what win32 does, same as true from (-e "") on Windoze Win32::GetFullPathName() returns ...\tempor\<p and MS CRT stat expands it into last_name_p

  • Comment on (solved) win32 ntfs stat / -f -s -x ... on filename starting with < performs wildcard expansion / glob
  • Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1031544]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-24 19:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found