Last active
November 9, 2023 06:35
-
-
Save xqm32/123ac2bd696afa1141e00a1e9755bf98 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
rm -rf slash | |
mkdir slash | |
pushd slash > /dev/null | |
mkdir -p private/var | |
pushd private/var > /dev/null | |
touch sth-in-p-v | |
popd > /dev/null | |
ln -s private/var var | |
pushd var > /dev/null | |
echo "realpath: $(realpath .)" | |
echo "pwd: $(pwd)" | |
ln -s ../sth-in-p-v sth-in-v | |
echo "expected: */slash/sth-in-p-v" | |
echo "get: $(realpath sth-in-v)" | |
popd > /dev/null | |
popd > /dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment