GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    Simon Tatham (simontatham@hachyderm.io)'s status on Friday, 14-Jun-2024 14:31:11 JST Simon Tatham Simon Tatham

    'mkdir -p' lets you make a deeply nested subdirectory like a/b/c/d, making all the intermediate directories on the way to it. So if even 'a' doesn't exist, it'll make that, then a/b, etc.

    But you can also get it to make multiple _non_-nested directories, because it accepts '..' in the path and doesn't treat it specially:

    $ mkdir -p alpha/../beta/../gamma
    $ ls
    alpha beta gamma
    $

    [Edit: to be clear, I'm pointing out an amusing edge case, not giving advice!]

    In conversation Friday, 14-Jun-2024 14:31:11 JST from hachyderm.io permalink
    • Embed this notice
      Rev. Roger BW 😷 (rogerbw@emacs.ch)'s status on Friday, 14-Jun-2024 14:31:07 JST Rev. Roger BW 😷 Rev. Roger BW 😷
      in reply to
      • Daniel Bohrer

      @daniel_bohrer It's "brace expansion" in the bash man page, and it can also do ranges: {1..9}, {a..z} etc. I'd been using bash for at least 15 years before I found out about it by chance.

      In conversation Friday, 14-Jun-2024 14:31:07 JST permalink
    • Embed this notice
      Daniel Bohrer (daniel_bohrer@chaos.social)'s status on Friday, 14-Jun-2024 14:31:08 JST Daniel Bohrer Daniel Bohrer
      in reply to
      • Rev. Roger BW 😷

      @RogerBW TIL that this is a bashism 😲
      (It's not mentioned anywhere in https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html )

      In conversation Friday, 14-Jun-2024 14:31:08 JST permalink

      Attachments

      1. Domain not in remote thumbnail source whitelist: pubs.opengroup.org
        Shell Command Language
      Ryan Castellucci (they/them) :nonbinary_flag: repeated this.
    • Embed this notice
      Rev. Roger BW 😷 (rogerbw@emacs.ch)'s status on Friday, 14-Jun-2024 14:31:10 JST Rev. Roger BW 😷 Rev. Roger BW 😷
      in reply to

      @simontatham Reminds me of my bashism for a new maildir:
      $ mkdir ~/Mail/name/{,cur,new,tmp}

      In conversation Friday, 14-Jun-2024 14:31:10 JST permalink
    • Embed this notice
      Ryan Castellucci (they/them) :nonbinary_flag: (ryanc@infosec.exchange)'s status on Friday, 14-Jun-2024 14:31:58 JST Ryan Castellucci (they/them) :nonbinary_flag: Ryan Castellucci (they/them) :nonbinary_flag:
      in reply to
      • Daniel Bohrer
      • Rev. Roger BW 😷

      @RogerBW @daniel_bohrer It can do ranges!? I've been wrapping seq in backticks for no reason for twenty years. 😭

      In conversation Friday, 14-Jun-2024 14:31:58 JST permalink
    • Embed this notice
      Claudius Link (realn2s@infosec.exchange)'s status on Friday, 14-Jun-2024 14:58:47 JST Claudius Link Claudius Link
      in reply to
      • Daniel Bohrer
      • Rev. Roger BW 😷
      • Ryan Castellucci (they/them) :nonbinary_flag:

      @ryanc @RogerBW @daniel_bohrer
      Me too 😳
      (And I'm actually not sure if I'm not too old to charge that 😜)

      In conversation Friday, 14-Jun-2024 14:58:47 JST permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.