Try doing cd inside a function and then pwd in the main script. Does it move the main script too?
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
replies:
Try doing cd inside a function and then pwd in the main script. Does it move the main script too?