Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • This also came into my mind at first, but it seems that the OP want to do other things inside function after go back to previous dir. Commented Feb 2, 2016 at 17:13
  • Would you mind explaining more details about behave like in other languages, what's other languages? Commented Feb 2, 2016 at 17:14
  • @cuonglm, the chdir or C, perl, python, ruby, java, you name it. Commented Feb 2, 2016 at 17:25