• Lifter
    link
    fedilink
    arrow-up
    1
    ·
    14 days ago

    Try doing cd inside a function and then pwd in the main script. Does it move the main script too?

    • [object Object]@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      14 days ago

      I’m gonna bet yes for the simple reason that various helper scripts exist that do advanced cd history, with fuzzy search and whatnot, and they can’t be implemented as anything other than functions.