Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Darkly)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Uncategorized
  3. we do a little shell scripting

we do a little shell scripting

Scheduled Pinned Locked Moved Uncategorized
27 Posts 3 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • adzuki-11C adzuki-11
    @fiore theres a github discussion about adding a switch statement and noones really opposed to it since itd simplify things when enumerating a variable but this isnt even what im doing im evaluating 2 variables to make for ultimately 3 cases
    φF This user is from outside of this forum
    φF This user is from outside of this forum
    φ
    wrote last edited by
    #21

    @coolbean imean its crazy tho , i think when pike made rc , the bourne shell already had case statements ?

    adzuki-11C 1 Reply Last reply
    0
    • φF φ

      @coolbean imean its crazy tho , i think when pike made rc , the bourne shell already had case statements ?

      adzuki-11C This user is from outside of this forum
      adzuki-11C This user is from outside of this forum
      adzuki-11
      wrote last edited by
      #22
      @fiore rc removed a lot of things. the goal was simplifying things to improve composeability
      adzuki-11C 1 Reply Last reply
      0
      • adzuki-11C adzuki-11
        @fiore rc removed a lot of things. the goal was simplifying things to improve composeability
        adzuki-11C This user is from outside of this forum
        adzuki-11C This user is from outside of this forum
        adzuki-11
        wrote last edited by
        #23
        @fiore and honestly the way im approaching this is kinda elegant. first checking if the user is root then checking if the user is not connected via ssh and then knowing the user is not root and connected via ssh so both host and user need to be displayed
        adzuki-11C 1 Reply Last reply
        0
        • adzuki-11C adzuki-11
          @fiore and honestly the way im approaching this is kinda elegant. first checking if the user is root then checking if the user is not connected via ssh and then knowing the user is not root and connected via ssh so both host and user need to be displayed
          adzuki-11C This user is from outside of this forum
          adzuki-11C This user is from outside of this forum
          adzuki-11
          wrote last edited by
          #24
          @fiore i keep approaching it differently which is funny

          also fun fact but the default prompt for es is ; because it means you can copy the entire terminal window and rerun your commands
          φF 1 Reply Last reply
          0
          • adzuki-11C adzuki-11
            @fiore i keep approaching it differently which is funny

            also fun fact but the default prompt for es is ; because it means you can copy the entire terminal window and rerun your commands
            φF This user is from outside of this forum
            φF This user is from outside of this forum
            φ
            wrote last edited by
            #25

            @coolbean iknow !! someone told me a while back .. fascinating ithink

            Avery (She/Her)S 1 Reply Last reply
            0
            • φF φ

              @coolbean iknow !! someone told me a while back .. fascinating ithink

              Avery (She/Her)S This user is from outside of this forum
              Avery (She/Her)S This user is from outside of this forum
              Avery (She/Her)
              wrote last edited by
              #26

              @fiore @coolbean nonzero chance that was me talking about rc... idk tho

              φF 1 Reply Last reply
              0
              • Avery (She/Her)S Avery (She/Her)

                @fiore @coolbean nonzero chance that was me talking about rc... idk tho

                φF This user is from outside of this forum
                φF This user is from outside of this forum
                φ
                wrote last edited by
                #27

                @shitpostalotl@axfedi.derg.rest @coolbean prolly

                1 Reply Last reply
                1
                0
                • R AodeRelay shared this topic
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                Powered by NodeBB Contributors
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups