• macniel
    link
    fedilink
    720 days ago

    just for the sake of being pedantic: echo is actually a program (just like ls) cd though is indeed a command. And I agree with your last statement.

    • elmicha
      link
      fedilink
      English
      620 days ago

      echo is a program, but some shells like Bash and zsh also have a built-in echo. You can run type echo to verify that.

      • macniel
        link
        fedilink
        520 days ago

        whelp… i tried to be pedantic and then got schooled. Thanks :D

    • @[email protected]
      link
      fedilink
      520 days ago

      In Bash echo is a builtin command. The external indipendent /usr/bin/echo is only used by non Bash shells.

      • macniel
        link
        fedilink
        420 days ago

        whelp… i tried to be pedantic and then got schooled. Thanks :D

        • @[email protected]
          link
          fedilink
          420 days ago

          Well, you was not wrong though. Because it is both. I just forgot it, so you schooled me too. :-) We can have it all! :D