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 #42769 is a reply to message #42767] Thu, 24 February 2005 13:48 Go to previous messageGo to previous message
James Kuyper is currently offline  James Kuyper
Messages: 425
Registered: March 2000
Senior Member
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 "\"
[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:22:01 PDT 2025

Total time taken to generate the page: 3.76322 seconds