aboutsummaryrefslogtreecommitdiff
path: root/tests/builtin/ln.testscript
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-03-15 17:02:22 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-03-17 13:16:33 +0300
commit955afeb419ed02a078b45312949767692751274c (patch)
tree1f2190353eb6fd69b065ed0a0c11f8da9f39ef4e /tests/builtin/ln.testscript
parent56e49a09b4f1d268bfee83324bbcd44eb925815b (diff)
Fix ln builtin not to complete relative target against working directory
Now it preserves the relative path when creates a symlink and completes it against the link directory when creates a hardlink or a copy.
Diffstat (limited to 'tests/builtin/ln.testscript')
-rw-r--r--tests/builtin/ln.testscript6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/builtin/ln.testscript b/tests/builtin/ln.testscript
index c12999f..051d0dc 100644
--- a/tests/builtin/ln.testscript
+++ b/tests/builtin/ln.testscript
@@ -112,7 +112,7 @@ $* -u >'option -u' 2>"ln: unknown option '-u'" == 1
{
touch a;
- $* -s a b/c >>/~%EOO% 2>>/~%EOE% != 0
+ $* -s $~/a b/c >>/~%EOO% 2>>/~%EOE% != 0
%create .+/b/c true%
EOO
%(
@@ -185,7 +185,7 @@ $* -u >'option -u' 2>"ln: unknown option '-u'" == 1
{
mkdir a;
- $* -s a b/c >>/~%EOO% 2>>/~%EOE% != 0
+ $* -s $~/a b/c >>/~%EOO% 2>>/~%EOE% != 0
%create .+/b/c true%
EOO
%(
@@ -205,7 +205,7 @@ $* -u >'option -u' 2>"ln: unknown option '-u'" == 1
touch a;
mkdir b c;
- $* -s a b c/ >>/~%EOO% &c/a &c/b;
+ $* -s ../a ../b c/ >>/~%EOO% &c/a &c/b;
%create .+/c/a true%
%create .+/c/a false%
%create .+/c/b true%