In a bash shell script today I noticed the below command at the end of the script. I know what is cd but I am unaware of the significance of a dash after it.
cd
If a single dash is specified as the argument, it will be replaced by the value of OLDPWD.
OLDPWD
The OLDPWD is set by cd command and it is the previous working directory.