• Re: on cl-json and slashes

    From steve g@Sgonedes1977@gmail.com to comp.lang.lisp on Wed Nov 25 02:28:17 2026
    From Newsgroup: comp.lang.lisp

    Lawrence D’Oliveiro <ldo@nz.invalid> writes:


    Unix machines can cope with backslashes and spaces in filenames.

    Yes, these days you are correct. Years ago it was quite annoying having
    spaces in the folder when gpm and bash.

    Just because MS did it usually means everyone else will start doing it too.
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From steve g@Sgonedes1977@gmail.com to comp.lang.lisp on Wed Nov 25 02:30:28 2026
    From Newsgroup: comp.lang.lisp

    Anton Antimo <anton@safunu.org> writes:

    steve g <Sgonedes1977@gmail.com> writes:

    Anton Antimo <anton@safunu.org> writes:

    steve g <Sgonedes1977@gmail.com> writes:

    Anton Antimo <anton@safunu.org> writes:

    I'm just curious why someone would escape slashes and make it the
    default on a library to handle JSON (of any sort).

    Microsoft.

    Sorry---too terse to me. Care to explain what ``Microsoft'' means?

    In the USA Microsoft is a human entity with all the rights of a citizen;
    hence incorporated. Have you never heard of this company?

    I know the company. I just didn't know what you meant. Now I do. But
    like you said in the other post, Microsoft cares about backslashes, not slashes.

    My apologies; they just drive me crazy. Thank god for Gnu software...
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From Lawrence =?iso-8859-13?q?D=FFOliveiro?=@ldo@nz.invalid to comp.lang.lisp on Wed Nov 25 08:07:43 2026
    From Newsgroup: comp.lang.lisp

    On Wed, 25 Nov 2026 02:28:17 -0500, steve g wrote:

    Lawrence D’Oliveiro <ldo@nz.invalid> writes:

    Unix machines can cope with backslashes and spaces in filenames.

    Yes, these days you are correct. Years ago it was quite annoying
    having spaces in the folder when gpm and bash.

    It is quite easy, in a shell script, to deal with any characters in a file/directory name except a newline.

    Dealing with newlines can be done, too, it is just slightly more
    complicated.

    Somewhere along the lead up to that point is when I decide that things
    are getting too complicated for a shell script, and that I should
    resort to a more facile programming language, like Python.
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From Anton Antimo@anton@safunu.org to comp.lang.lisp on Wed Nov 25 11:23:38 2026
    From Newsgroup: comp.lang.lisp

    steve g <Sgonedes1977@gmail.com> writes:

    Anton Antimo <anton@safunu.org> writes:

    steve g <Sgonedes1977@gmail.com> writes:

    Anton Antimo <anton@safunu.org> writes:

    steve g <Sgonedes1977@gmail.com> writes:

    Anton Antimo <anton@safunu.org> writes:

    I'm just curious why someone would escape slashes and make it the
    default on a library to handle JSON (of any sort).

    Microsoft.

    Sorry---too terse to me. Care to explain what ``Microsoft'' means?

    In the USA Microsoft is a human entity with all the rights of a citizen; >>> hence incorporated. Have you never heard of this company?

    I know the company. I just didn't know what you meant. Now I do. But
    like you said in the other post, Microsoft cares about backslashes, not
    slashes.

    My apologies; they just drive me crazy. Thank god for Gnu software...

    No need to. Yeah---long live GNU software.
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From tfb@tfb@work.it.out to comp.lang.lisp on Wed Nov 25 19:10:20 2026
    From Newsgroup: comp.lang.lisp

    steve g <Sgonedes1977@gmail.com> wrote:

    Yes, these days you are correct. Years ago it was quite annoying having spaces in the folder when gpm and bash.


    I believe it has only ever been annoying: it's always been possible, just painful with shells.

    I presume now All living unix-derivatives support unicode presumably in the form of UTF-8 but I don't know.
    --
    tfeb.org/computer/
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From steve g@Sgonedes1977@gmail.com to comp.lang.lisp on Wed Nov 25 20:00:12 2026
    From Newsgroup: comp.lang.lisp

    Lawrence D’Oliveiro <ldo@nz.invalid> writes:


    Dealing with newlines can be done, too, it is just slightly more
    complicated.

    The point is that there are very few occasions where this happens; most programmers probably never even thought abour the EOL character...


    Somewhere along the lead up to that point is when I decide that things
    are getting too complicated for a shell script, and that I should
    resort to a more facile programming language, like Python.

    I like perl for grungy regexps and parsing... to each their own.
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From Lawrence =?iso-8859-13?q?D=FFOliveiro?=@ldo@nz.invalid to comp.lang.lisp on Thu Nov 26 01:22:57 2026
    From Newsgroup: comp.lang.lisp

    On Wed, 25 Nov 2026 20:00:12 -0500, steve g wrote:

    Lawrence D’Oliveiro <ldo@nz.invalid> writes:

    Dealing with newlines can be done, too, it is just slightly more
    complicated.

    The point is that there are very few occasions where this happens;
    most programmers probably never even thought abour the EOL
    character...

    But you have no idea what users will do.

    Somewhere along the lead up to that point is when I decide that
    things are getting too complicated for a shell script, and that I
    should resort to a more facile programming language, like Python.

    I like perl for grungy regexps and parsing... to each their own.

    I started with Perl. For a long while, it had the edge in terms of
    sheer variety of addon packages. But not any more.
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From tfb@tfb@work.it.out to comp.lang.lisp on Thu Nov 26 08:11:08 2026
    From Newsgroup: comp.lang.lisp

    steve g <Sgonedes1977@gmail.com> wrote:
    Lawrence D’Oliveiro <ldo@nz.invalid> writes:

    The point is that there are very few occasions where this happens; most programmers probably never even thought abour the EOL character...


    If you write programs that grovel over large directory trees with files
    written by naïve users ('naïve' here meaning 'experts in a field which just uses computers as tools'), you *will* find filenames that include newlines.
    And carriage returns. And tabs. And almost anything, perhaps actually anything, that the underlying filesystem allows.

    You won't find them very often, but you must be willing to deal with them.
    --
    tfeb.org/computer/
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From steve g@Sgonedes1977@gmail.com to comp.lang.lisp on Fri Nov 27 22:34:53 2026
    From Newsgroup: comp.lang.lisp

    Lawrence D’Oliveiro <ldo@nz.invalid> writes:

    On Wed, 25 Nov 2026 20:00:12 -0500, steve g wrote:

    Lawrence D’Oliveiro <ldo@nz.invalid> writes:

    Dealing with newlines can be done, too, it is just slightly more
    complicated.

    The point is that there are very few occasions where this happens;
    most programmers probably never even thought abour the EOL
    character...

    But you have no idea what users will do.

    sure I do. they will most likely do what the software allows them to do.

    Somewhere along the lead up to that point is when I decide that
    things are getting too complicated for a shell script, and that I
    should resort to a more facile programming language, like Python.

    I like perl for grungy regexps and parsing... to each their own.

    I started with Perl. For a long while, it had the edge in terms of
    sheer variety of addon packages. But not any more.

    I really like perl. I love to hear that people are no longer interested
    in it because it is not new.
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From steve g@Sgonedes1977@gmail.com to comp.lang.lisp on Fri Nov 27 22:42:32 2026
    From Newsgroup: comp.lang.lisp

    tfb <tfb@work.it.out> writes:

    steve g <Sgonedes1977@gmail.com> wrote:
    Lawrence D’Oliveiro <ldo@nz.invalid> writes:

    The point is that there are very few occasions where this happens; most
    programmers probably never even thought abour the EOL character...


    If you write programs that grovel over large directory trees with files written by naïve users ('naïve' here meaning 'experts in a field which just uses computers as tools'), you *will* find filenames that include newlines.
    And carriage returns. And tabs. And almost anything, perhaps actually anything, that the underlying filesystem allows.

    You won't find them very often, but you must be willing to deal with them.


    Do not forget about ansi escape sequences for color. I had to get into a
    server once and they changed the foreground color to black. Jerks.
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From Lawrence =?iso-8859-13?q?D=FFOliveiro?=@ldo@nz.invalid to comp.lang.lisp on Sat Nov 28 03:54:19 2026
    From Newsgroup: comp.lang.lisp

    On Fri, 27 Nov 2026 22:34:53 -0500, steve g wrote:

    I really like perl. I love to hear that people are no longer
    interested in it because it is not new.

    Perl is supposed to be renowned for its conciseness, even crypticness (crypticity?), but I’m not so sure.

    I was looking at how to convert /etc/passwd data and friends to being
    served up via LDAP, and came across this <https://gitlab.com/future-ad-laboratory/migrationtools> old set of
    Perl-based conversion scripts. The code for handling the passwd,
    shadow and group files (all I was interested in) totals over 800 lines
    of Perl.

    I did a Python version <https://bitbucket.org/ldo17/passwd_to_ldap/>
    that was half that size.
    --- Synchronet 3.21e-Linux NewsLink 1.2