• scripting

    From Utopian Galt@21:4/108 to All on Fri Apr 11 10:44:04 2025
    I would like to master scripting on my mac such as writing a zsh script to move my downloaded qwk files to my multimail download directory.


    ... "42? 7 and a half million years and all you can come up with is 42?!"
    --- MultiMail/Mac v0.52


    --- WWIV 5.9.03748[Windows]
    * Origin: inland utopia * california * iutopia.duckdns.org:2023 (21:4/108)
  • From Gamgee@21:2/138 to Utopian Galt on Fri Apr 11 15:25:52 2025
    Utopian Galt wrote to All <=-

    I would like to master scripting on my mac such as writing a zsh script
    to move my downloaded qwk files to my multimail download directory.

    Okay.



    ... So easy, a child could do it. Child sold separately.
    === MultiMail/Linux v0.52
    --- SBBSecho 3.23-Linux
    * Origin: Palantir * palantirbbs.ddns.net * Pensacola, FL * (21:2/138)
  • From paulie420@21:2/150 to Utopian Galt on Sat Apr 12 18:49:27 2025
    I would like to master scripting on my mac such as writing a zsh script
    to move my downloaded qwk files to my multimail download directory.

    I've been doing a lot of my computing in MacOS recently. All my infrastructure still runs on Linux, but I've been 'living' in MacOS...

    I switch MacOS to bash, but zsh is mostly POSIX compatible and is very scriptable...



    |07p|15AULIE|1142|07o
    |08.........

    --- Mystic BBS v1.12 A49 2024/05/29 (Linux/64)
    * Origin: 2o fOr beeRS bbs>>>20ForBeers.com:1337 (21:2/150)
  • From deon@21:2/116 to paulie420 on Sun Apr 13 18:59:11 2025
    Re: Re: scripting
    By: paulie420 to Utopian Galt on Sat Apr 12 2025 06:49 pm

    Howdy,

    I switch MacOS to bash, but zsh is mostly POSIX compatible and is very scriptable...

    How come? Since zsh came along (and me discovering oh-my-zsh), I've really enjoyed it.

    That said, any scripting I do is bash though :)


    ...δεσ∩
    --- SBBSecho 3.24-Linux
    * Origin: I'm playing with ANSI+videotex - wanna play too? (21:2/116)
  • From paulie420@21:2/150 to deon on Sun Apr 13 17:02:47 2025
    I switch MacOS to bash, but zsh is mostly POSIX compatible and is very scriptable...

    How come? Since zsh came along (and me discovering oh-my-zsh), I've
    really enjoyed it.

    That said, any scripting I do is bash though :)

    I mean - I like some of zsh's features - the autocomplete and suggestions that pop up are really nice; and I know that you can make all bash scripts work under it, but I just like to have the same terminal experience as I always have so fall back on bash for all my systems. Everythings the same...

    Maybe I should give some other shells a chance. I was impressed with Fish, too - but that one can break some bash stuff so I would keep two different terminal emulators available. Meh...



    |07p|15AULIE|1142|07o
    |08.........

    --- Mystic BBS v1.12 A49 2024/05/29 (Linux/64)
    * Origin: 2o fOr beeRS bbs>>>20ForBeers.com:1337 (21:2/150)
  • From Nigel Reed@21:2/101 to All on Tue Apr 15 01:32:57 2025
    On Fri, 11 Apr 2025 10:44:04 -0700
    "Utopian Galt" (21:4/108) <Utopian.Galt@f108.n4.z21.fidonet> wrote:

    I would like to master scripting on my mac such as writing a zsh
    script to move my downloaded qwk files to my multimail download
    directory.


    ... "42? 7 and a half million years and all you can come up with is
    42?!" --- MultiMail/Mac v0.52


    --- WWIV 5.9.03748[Windows]
    * Origin: inland utopia * california * iutopia.duckdns.org:2023
    (21:4/108)


    That's nice.
    --
    End Of The Line BBS - Plano, TX
    telnet endofthelinebbs.com 23
    --- SBBSecho 3.24-Linux
    * Origin: End Of The Line BBS - endofthelinebbs.com (21:2/101)
  • From phigan@21:3/193 to paulie420 on Thu Apr 17 05:27:13 2025
    I switch MacOS to bash, but zsh is mostly POSIX compatible and is very scriptable...

    Screw that zsh nonsense! :)



    --- NE BBS v1.04.1 (linux; x64)
    * Origin: NE BBS - nebbs.servehttp.com:9223 (21:3/193)
  • From phigan@21:3/193 to paulie420 on Thu Apr 17 05:29:04 2025
    I mean - I like some of zsh's features - the autocomplete and suggestions
    that pop up are really nice; and I know that you can make all bash

    Those are actually the things that bug me about zsh.

    Kinda unrelated but not (and not a shell)... github.com/nvbn/thefuck



    --- NE BBS v1.04.1 (linux; x64)
    * Origin: NE BBS - nebbs.servehttp.com:9223 (21:3/193)
  • From boraxman@21:1/101 to phigan on Thu Apr 17 23:14:25 2025
    On 17 Apr 2025 at 05:29a, phigan pondered and said...

    I mean - I like some of zsh's features - the autocomplete and suggestion
    that pop up are really nice; and I know that you can make all bash

    Those are actually the things that bug me about zsh.

    Kinda unrelated but not (and not a shell)... github.com/nvbn/thefuck

    Tab completion can be an issue if the shell stalls bringing up the completion. On rare occasion this bites you in the bum, say when unmounting a network share that is not online, and it insists on searching completions, then gets stuck.

    But mostly I like it, as well as the syntax highlighting that ZSH offers.

    But beyond that, the expanded globbing and qualifiers are really cool. I can, with ZSH set extended attributes on files, and then using the shell, easily use those as "flags" or "tags", allowing me to do something like this

    cp *(^+archived) /media/user/DISK

    Copy all files which don't have the "ARCHIVED" tag to the mounted disk.

    I can then set the tags on those files. As I know they are archived, and exist elsewhere, I can delete only those files

    rm *(+archived)

    ... Error, no Keyboard - Press F1 to Continue.

    --- Mystic BBS v1.12 A48 (Linux/64)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (21:1/101)
  • From Jimmy Anderson@21:2/138 to Utopian Galt on Tue May 6 19:43:36 2025
    Utopian Galt wrote to All <=-

    I would like to master scripting on my mac such as writing a zsh script
    to move my downloaded qwk files to my multimail download directory.

    ChatGPT is your friend there!

    But I skip that step... I have my SyncTerm set to download straight to the mmail/down folder - and rep's go into mmail/up, and SyncTerm looks there
    when I get ready to upload.

    YMMV


    ... I know a good tagline when I steal one!
    === MultiMail/Mac v0.52
    --- SBBSecho 3.24-Linux
    * Origin: Palantir * palantirbbs.ddns.net * Pensacola, FL * (21:2/138)