lemmy.net.au
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
cannedtuna@lemmy.world to Programmer Humor@programming.devEnglish · 2か月前

Terminology

lemmy.world

message-square
72
fedilink
876

Terminology

lemmy.world

cannedtuna@lemmy.world to Programmer Humor@programming.devEnglish · 2か月前
message-square
72
fedilink
  • wonderingwanderer@sopuli.xyz
    link
    fedilink
    arrow-up
    23
    arrow-down
    1
    ·
    2か月前

    I changed the $ in bash to § because fuck capitalism, keep your currency out of my free software

    • 𝕸𝖔𝖘𝖘@infosec.pub
      link
      fedilink
      arrow-up
      17
      ·
      2か月前

      That’s the currency in The Sims…

    • dry_water@programming.dev
      link
      fedilink
      arrow-up
      5
      ·
      2か月前

      How will you escape $var usage in scripts though :P

      • wonderingwanderer@sopuli.xyz
        link
        fedilink
        arrow-up
        3
        ·
        2か月前

        I’ve… never had to do that. What does it do?

        • oozynozh@sh.itjust.works
          link
          fedilink
          arrow-up
          3
          ·
          2か月前

          bash uses $ character to indicate variables. for example, you can see your current environment variables with the env command. then to see a specific variable echo $var to print its value.

          scripts may call variables for a variety of reasons. one common case would be collecting information from the environment it’s running under to determine whether it’s compatible.

          • wonderingwanderer@sopuli.xyz
            link
            fedilink
            arrow-up
            2
            ·
            2か月前

            Oh. Oh yeah, I have done that. Like for adding the date to a file name when I dump a terminal output to into a text file, or adding hit counts to a custom notification after running a scan on a cron job.

            I just use the character for that. It’s fine, can’t win them all, but it’s better than having it at the beginning of every command line for seemingly no reason

            • oozynozh@sh.itjust.works
              link
              fedilink
              arrow-up
              1
              ·
              2か月前

              bingo

        • dry_water@programming.dev
          link
          fedilink
          arrow-up
          1
          ·
          2か月前

          Was referring to https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#Bash-Variables

          • wonderingwanderer@sopuli.xyz
            link
            fedilink
            arrow-up
            2
            ·
            2か月前

            Got it, yeah someone else already explained it and it turns out I have used it

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
    • If the mod doesn’t find it funny, you’re banned. Ha-ha!.. For real: do not use the community for “statements”. There are other places for such content. Keep it chill and funny.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1.21K users / day
  • 4.99K users / week
  • 7.53K users / month
  • 15.7K users / 6 months
  • 1 local subscriber
  • 33.6K subscribers
  • 1.17K Posts
  • 15.6K Comments
  • Modlog
  • mods:
  • adr1an@programming.dev
  • Feyter@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.9
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org