• @Dasnap
    link
    229 months ago

    Me temporarily forgetting the structure of an if statement in Shell.

    • exu
      link
      fedilink
      English
      69 months ago

      Like this I think

      if [1]; then
          echo "hi"
      fi
      
    • LazaroFilm
      link
      English
      39 months ago

      And then there’s stupid Cpp with

      if (true) {
        do();
      }
      

      Or

      if THIS
        do();
      endif 
      
      • ActuallyRuben
        link
        fedilink
        39 months ago

        What’s weird about the C++ one? At least that one is the same in a bunch of languages