you are viewing a single comment's thread
view the rest of the comments
[–] 8 points 1 year ago* (7 children)

That's what help command is for.

help cd
help while
help

  • source
  • parent
  • hideshow 7 child comments
  • [–] 10 points 1 year ago (1 child)

    Oooh, neat. I didn't know about that. Thanks. That better not have been around since the 1990s or something, with me always searching the bash(1) man page to find builtin information.

    $ help help|head -n2
    help: help [-dms] [pattern ...]
        Display information about builtin commands.
    $ git clone https://git.savannah.gnu.org/git/bash.git
    $ cd bash
    $ git log -S "Display information about builtin commands."|grep ^commit|tail -n1
    commit 3185942a5234e26ab13fa02f9c51d340cec514f8
    $ git show 3185942a5234e26ab13fa02f9c51d340cec514f8|grep ^Date
    Date:   Mon Jan 12 13:36:28 2009 +0000
    $
    

    Well, it's not the 1990s, but still. Dammit.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 5 points 1 year ago (4 children)

    It gets complicated when using zsh.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 6 points 1 year ago (2 children)

    I'm not complaining, much, but when my distro switched from bash to zsh and I didn't know until I reinstalled it for shins and gargles... that was a bad day for my remembered commands.

  • source
  • parent
  • hideshow 2 child comments