Skip to content

Instantly share code, notes, and snippets.

@NV
Created August 24, 2011 12:28
Show Gist options
  • Save NV/1167956 to your computer and use it in GitHub Desktop.
Save NV/1167956 to your computer and use it in GitHub Desktop.
Never write cd - in Bash scripts
pwd # ~/tmp
(
mkdir foo
cd foo
pwd # ~/tmp/foo
)
pwd # ~/tmp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment