diff --git a/tcsh-6.19.00-008-fix-ln-1-completion.patch b/tcsh-6.19.00-008-fix-ln-1-completion.patch new file mode 100644 index 0000000..e6dc8a3 --- /dev/null +++ b/tcsh-6.19.00-008-fix-ln-1-completion.patch @@ -0,0 +1,27 @@ +From 33f2a2b3e17194b38f68d710f200fca63bc91a38 Mon Sep 17 00:00:00 2001 +From: christos +Date: Fri, 3 Jul 2015 16:52:47 +0000 +Subject: [PATCH] Fix ln(1) completion. next word completions don't do partial + matches anymore (since the word has been completed...) so n/-/f etc don't + match -s anymore; change it to n/-*/f so that it works. + +--- + complete.tcsh | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/complete.tcsh b/complete.tcsh +index 41bdbb0..cceab4f 100644 +--- a/complete.tcsh ++++ b/complete.tcsh +@@ -1009,7 +1009,7 @@ complete ln c/--/"(backup directory force no-dereference \ + c/-/"(b d F f i n S s V v -)"/ \ + n/{-S,--suffix}/x:''/ \ + n/{-V,--version-control}/"(t numbered nil existing \ +- never simple)"/ n/-/f/ N/-/x:''/ \ ++ never simple)"/ n/-*/f/ N/-*/x:''/ \ + p/1/f/ p/2/x:''/ + complete touch c/--/"(date reference time help version)"/ \ + c/-/"(a c d f m r t -)"/ \ +-- +2.5.5 + diff --git a/tcsh.spec b/tcsh.spec index 92b3f5d..8a294a8 100644 --- a/tcsh.spec +++ b/tcsh.spec @@ -36,6 +36,7 @@ Patch004: tcsh-6.19.00-004-remove-unused-variable.patch Patch005: tcsh-6.19.00-005-ge0-is-always-true-for-unsigned.patch Patch006: tcsh-6.19.00-006-_SIGWINCH-added.patch Patch007: tcsh-6.19.00-007-fix-handling-of-invalid-unicode-characters.patch +Patch008: tcsh-6.19.00-008-fix-ln-1-completion.patch # Downstream patches -- these should be always included when doing rebase: @@ -164,6 +165,7 @@ fi tcsh-6.19.00-005-ge0-is-always-true-for-unsigned.patch tcsh-6.19.00-006-_SIGWINCH-added.patch tcsh-6.19.00-007-fix-handling-of-invalid-unicode-characters.patch + tcsh-6.19.00-008-fix-ln-1-completion.patch * Thu Apr 21 2016 David Kaspar [Dee'Kej] - 6.19.00-6 - Drop tcsh-6.15.00-closem.patch - issue not reproducible, patch not accepted by upstream