comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: file_basename(): bug or feature?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: file_basename(): bug or feature? [message #42767] Thu, 24 February 2005 14:08 Go to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
James Kuyper wrote:
> Paul Van Delst wrote:
> ...
>
>> Couldn't you just loop over the types of path separators? (e.g.
>> ['/','\',':',..etc] for the various systems? Are any of the path
>> separators on different systems allowable filename characters on others?
>
>
> Yes, certainly. That's what makes it such a pain. In particular, "\" and
> ":" are allowable filename characters on Unix systems. It's a little
> tricky to create a filename containing a "\" with shell commands,
> because the "\" is interpretted by the shell, unless it's either quoted
> or escaped. Try:
>
> echo hello > \\
> vi "\"

Oof! I see. I couldn't vi the file, but it was created. Wot a pita.

paulv


--
Paul van Delst
CIMSS @ NOAA/NCEP/EMC
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: file_basename(): bug or feature?
Next Topic: /YNOZERO

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 10:19:46 PDT 2025

Total time taken to generate the page: 1.03876 seconds