Re: what's the correct behavior of directory-namestring
Marco Antoniotti <[email protected]> Thu, 31 Jul 2025 10:33:27 +0300
| Newsgroups | gmane.lisp.steel-bank.general |
|---|---|
| Message-ID | <CAG0Nw2mUXpMxQiJ1Pf035vcaLpndPY_HTgkUyGbgUPw7NxUu+w@mail.gmail.com> |
... 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]> 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]> > *Sent:* Wednesday, July 30, 2025 8:23 AM > *To:* [email protected] <[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]. 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] > 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]. > _______________________________________________ > Sbcl-help mailing list > [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