In the Bash, `~-` is expanded to the content of `OLDPWD`. So:
cd ~-/..
is a shortcut for the 2 commands:
cd "$OLDPWD" (or `cd -`)
cd ..
In the Bash, `~-` is expanded to the content of `OLDPWD`. So:
cd ~-/..
is a shortcut for the 2 commands:
cd "$OLDPWD" (or `cd -`)
cd ..
Jonkman Microblog is a social network, courtesy of SOBAC Microcomputer Services. It runs on GNU social, version 1.2.0-beta5, available under the GNU Affero General Public License.
All Jonkman Microblog content and data are available under the Creative Commons Attribution 3.0 license.