case1() {
touch b
lnf -T a b
- [[ -L b ]]
+ [[ -L b ]]
}
# 2 arguments, test that directory in link location is removed and replaced with a link
case2() {
mkdir b
lnf -T a b
- [[ -L b ]]
+ [[ -L b ]]
}
# single argument, test that an existing non-empty directory is removed and replaced by a link
mkdir a
touch a/b
lnf ../a
- [[ -L a ]]
+ [[ -L a ]]
}
# 4 arguments, 2 of the link locations already contain files.
touch a/b
touch a/c
lnf b c d a
- [[ -L a/b && -L a/c && -L a/d ]]
+ [[ -L a/b && -L a/c && -L a/d ]]
}
# 2 arguments, test that link is made correctly
case5() {
mkdir b
lnf a b
- [[ -L b/a ]]
+ [[ -L b/a ]]
}