|
Re: Using filenames which contain wildcard characters: msg#00113lisp.clisp.general
According to the CLHS (not directly), an implementation should provide an implementation dependent way of quoting the implementation dependent wild characters in the pathname component and/or namestring. Here is the relevant bit. ======================================================================== ========================================= 19.2.2.1.1 Special Characters in Pathname Components Strings in pathname component values never contain special characters that represent separation between pathname fields, such as slash in Unix filenames. Whether separator characters are permitted as part of a string in a pathname component is implementation-defined; however, if the implementation does permit it, it must arrange to properly ``quote'' the character for the file system when constructing a namestring. For example, ;; In a TOPS-20 implementation, which uses ^V to quote (NAMESTRING (MAKE-PATHNAME :HOST "OZ" :NAME "<TEST>")) => #P"OZ:PS:^V<TEST^V>" NOT=> #P"OZ:PS:<TEST>" ======================================================================== ========================================= It would look like that (by extension), you should be able to do something like (open "hello^V?" .....) However, this is going to be completely implementation dependent. As a personal preference, I wouldn't mix UNIX shell wildcards with CL pathname components. After all the C library does not care about '?' in file names. Cheers Marco On Friday, Apr 18, 2003, at 08:21 America/New_York, Sam Steingold wrote: --* In message <878yumbqwm.fsf@xxxxxxxxxxxxxxx> Marco Antoniotti NYU Courant Bioinformatics Group tel. +1 - 212 - 998 3488 715 Broadway 10th FL fax. +1 - 212 - 998 3484 New York, NY, 10003, U.S.A. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | CLISP RPMs are available from atrpms: 00113, Sam Steingold |
|---|---|
| Next by Date: | Суперпредложение: Trium Eclipse всего за 109$: 00113, 236485 |
| Previous by Thread: | Re: Using filenames which contain wildcard charactersi: 00113, Mark Triggs |
| Next by Thread: | Using filenames which contain wildcard characters: 00113, Hoehle, Joerg-Cyril |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |