Re: what's the correct behavior of directory-namestring
Michał Herda | Keepit via Sbcl-help <[email protected]> Thu, 31 Jul 2025 09:26:31 +0000
| Newsgroups | gmane.lisp.steel-bank.general |
|---|---|
| Message-ID | <DU0PR03MB94230B190E22E3DA5BC61F47C427A@DU0PR03MB9423.eurprd03.prod.outlook.com> |
It's not that neither is correct. It's worse - *both* are correct, and correctness depends on context in this case. ________________________________ From: Marco Antoniotti <[email protected]> Sent: Thursday, July 31, 2025 9:33 AM To: Michał Herda | Keepit <[email protected]> Cc: Jinsong Zhao <[email protected]>; [email protected] <[email protected]> Subject: Re: [Sbcl-help] what's the correct behavior of directory-namestring ... which means neither is correct :) Oh, the joys of pathname munging taking into account ITS and TOPS :) Cheers MA On Wed, Jul 30, 2025 at 10:20 AM Michał Herda | Keepit via Sbcl-help <[email protected]<mailto:[email protected]>> wrote: Both are correct - the parsing of namestrings is different on Windows and Linux. Try (DESCRIBE #P"R:/Temp/abc/") on both Windows and Linux to see which pathname slots are populated, and how, on which OS. ________________________________ From: Jinsong Zhao <[email protected]<mailto:[email protected]>> Sent: Wednesday, July 30, 2025 8:23 AM To: [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>> Subject: [Sbcl-help] what's the correct behavior of directory-namestring [Some people who received this message don't often get email from [email protected]<mailto:[email protected]>. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ] Hi there, I am using SBCL on Windows. I also have SBCL install on Debian Linux and FreeBSD. I have to deal with some pathnames, for example: #P"R:/Temp/abc/" When passing the pathname to directory-namestring in SBCL 2.5.7 on Windows, I got: * (directory-namestring #P"R:/Temp/abc/") "/Temp/abc/" SBCL 2.2.9 on Debian and 2.5.6 on FreeBSD, booth give: * (directory-namestring #P"R:/Temp/abc/") "R:/Temp/abc/" Which is the correct behavior? Best, Jinsong _______________________________________________ Sbcl-help mailing list [email protected]<mailto:[email protected]> https://lists.sourceforge.net/lists/listinfo/sbcl-help This e-mail is sent to you from Keepit A/S. Dedicated SaaS Data Protection. VAT: DK30806883, Per Henrik Lings Allé 4, 7., DK-2100 Copenhagen Ø, Denmark. This e-mail is sent to you directly and is meant for nobody else. If the e-mail contains personal data that Keepit is responsible for and the e-mail was not meant for you, please do not forward, distribute, or copy, i.e. but return the e-mail to sender. Also, do not send the e-mail to a third party without making sure that you have our prior consent. Distribution of this e-mail to unauthorized receivers may have legal consequences. If you have received an e-mail from us and you don’t know why, then please refer to our Privacy Policy<https://www.keepit.com/privacy-policy/>. If you do not want to receive more e-mails from us, please contact [email protected]<mailto:[email protected]>. _______________________________________________ Sbcl-help mailing list [email protected]<mailto:[email protected]> https://lists.sourceforge.net/lists/listinfo/sbcl-help -- Marco Antoniotti, Professor, Director tel. +39 - 02 64 48 79 01 DISCo, University of Milan-Bicocca U14 2043 http://dcb.disco.unimib.it Viale Sarca 336 I-20126 Milan (MI) ITALY REGAINS: https://regains.disco.unimib.it/ _______________________________________________ Sbcl-help mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sbcl-help