summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authordana <dana@dana.is>2019-05-03 20:13:11 -0500
committerdana <dana@dana.is>2019-05-03 20:13:48 -0500
commit6f202377c7596f9b4225af9fb9c149212eed2162 (patch)
treeecb888498575adfbaa5605d78571e9f6c2651f3b /Test
parent588bb77cb674a192eb176c01c8d17db1e9e4aba2 (diff)
downloadzsh-6f202377c7596f9b4225af9fb9c149212eed2162.tar.gz
zsh-6f202377c7596f9b4225af9fb9c149212eed2162.tar.xz
zsh-6f202377c7596f9b4225af9fb9c149212eed2162.zip
44267: sort: Restore option to ignore backslashes
Fix regression introduced by workers/41242
Diffstat (limited to 'Test')
-rw-r--r--Test/Y01completion.ztst22
1 files changed, 22 insertions, 0 deletions
diff --git a/Test/Y01completion.ztst b/Test/Y01completion.ztst
index b1c0e40e5..f1c981f26 100644
--- a/Test/Y01completion.ztst
+++ b/Test/Y01completion.ztst
@@ -99,6 +99,7 @@ F:regression test workers/31611
     comptesteval 'cd "A(B)/C"'
     comptest $'cd ../\t'
   } always {
+    comptesteval 'cd -' # Reset CWD
     rmdir 'A(B)/C' 'A(B)'
   }
 0:directory name is not a glob qualifier
@@ -116,6 +117,27 @@ F:regression test workers/31611
 0:allow for suffixes when moving cursor to end of match (without ignored suffix)
 >line: {tst word:/}{}
 
+# Test for regression introduced by workers/41242, raised in workers/43842
+  {
+    mkdir sortnobslash
+    touch sortnobslash/{'!foo','#foo','\foo','|foo','~foo',Afoo,bfoo}
+    comptesteval 'old_LC_ALL=$LC_ALL; LC_ALL=C'
+    comptest $': sortnobslash/\t'
+  } always {
+    comptesteval 'LC_ALL=$old_LC_ALL'
+    rm -rf sortnobslash
+  }
+0:ignore backslashes when sorting completion matches
+>line: {: sortnobslash/}{}
+>DESCRIPTION:{file}
+>FI:{\!foo}
+>FI:{\#foo}
+>FI:{Afoo}
+>FI:{\\foo}
+>FI:{bfoo}
+>FI:{\|foo}
+>FI:{\~foo}
+
 %clean
 
   zmodload -ui zsh/zpty