Repository: eza-community/eza (language: rust)

Issue:
test: pr 716
We need tests for the behavior mentioned in #716


Discussion / hints:
gonna generate directories and put some tests ups

Fix patch:
diff --git a/devtools/dir-generator.sh b/devtools/dir-generator.sh
index 0d9859bd3..dbe9bf860 100644
--- a/devtools/dir-generator.sh
+++ b/devtools/dir-generator.sh
@@ -70,6 +70,8 @@ ln -s symlink symlinks/symlink2
 mkdir -p symlinks/dir
 ln -s dir symlinks/symlink3
 ln -s pipitek symlinks/symlink4
+touch "symlinks/ lorem ipsum" --date=@0
+ln -s "lorem ipsum" "symlinks/ lorem ipsum"
 
 # END test_symlinks
 


Test patch:
diff --git a/tests/cmd/long_links_recurse_unix.stdout b/tests/cmd/long_links_recurse_unix.stdout
index 5c98d45f6..8eca0fffb 100644
--- a/tests/cmd/long_links_recurse_unix.stdout
+++ b/tests/cmd/long_links_recurse_unix.stdout
@@ -4178,6 +4178,7 @@ tests/test_dir/specials:
 tests/test_dir/symlinks:
 2 dir
 1 file
+1 ' lorem ipsum'
 1 symlink -> file
 1 symlink2 -> symlink
 1 symlink3 -> dir
diff --git a/tests/cmd/recursive_long_unix.stdout b/tests/cmd/recursive_long_unix.stdout
index 7b9eaa1dd..235e8187e 100644
--- a/tests/cmd/recursive_long_unix.stdout
+++ b/tests/cmd/recursive_long_unix.stdout
@@ -4178,6 +4178,7 @@ tests/test_dir/specials:
 tests/test_dir/symlinks:
 dir
 file
+' lorem ipsum'
 symlink -> file
 symlink2 -> symlink
 symlink3 -> dir
diff --git a/tests/cmd/recursive_unix.stdout b/tests/cmd/recursive_unix.stdout
index 7b9eaa1dd..235e8187e 100644
--- a/tests/cmd/recursive_unix.stdout
+++ b/tests/cmd/recursive_unix.stdout
@@ -4178,6 +4178,7 @@ tests/test_dir/specials:
 tests/test_dir/symlinks:
 dir
 file
+' lorem ipsum'
 symlink -> file
 symlink2 -> symlink
 symlink3 -> dir
diff --git a/tests/cmd/tree_long_unix.stdout b/tests/cmd/tree_long_unix.stdout
index f494634bd..d3f21c769 100644
--- a/tests/cmd/tree_long_unix.stdout
+++ b/tests/cmd/tree_long_unix.stdout
@@ -2142,6 +2142,7 @@ tests/test_dir
 ├── symlinks
 │  ├── dir
 │  ├── file
+│  ├── ' lorem ipsum'
 │  ├── symlink -> file
 │  ├── symlink2 -> symlink
 │  ├── symlink3 -> dir
diff --git a/tests/cmd/tree_unix.stdout b/tests/cmd/tree_unix.stdout
index f494634bd..d3f21c769 100644
--- a/tests/cmd/tree_unix.stdout
+++ b/tests/cmd/tree_unix.stdout
@@ -2142,6 +2142,7 @@ tests/test_dir
 ├── symlinks
 │  ├── dir
 │  ├── file
+│  ├── ' lorem ipsum'
 │  ├── symlink -> file
 │  ├── symlink2 -> symlink
 │  ├── symlink3 -> dir
diff --git a/tests/gen/long_links_recurse_unix.stdout b/tests/gen/long_links_recurse_unix.stdout
index 5c98d45f6..8eca0fffb 100644
--- a/tests/gen/long_links_recurse_unix.stdout
+++ b/tests/gen/long_links_recurse_unix.stdout
@@ -4178,6 +4178,7 @@ tests/test_dir/specials:
 tests/test_dir/symlinks:
 2 dir
 1 file
+1 ' lorem ipsum'
 1 symlink -> file
 1 symlink2 -> symlink
 1 symlink3 -> dir
diff --git a/tests/gen/ptest_2176b1b061cb7da2.stdout b/tests/gen/ptest_2176b1b061cb7da2.stdout
index 140afce8d..17a042d06 100644
--- a/tests/gen/ptest_2176b1b061cb7da2.stdout
+++ b/tests/gen/ptest_2176b1b061cb7da2.stdout
@@ -2,8 +2,8 @@ drwxr-xr-x - nixbld  1 Jan  1970 specials
 drwxr-xr-x - nixbld  1 Jan  1970 group
 drwxr-xr-x - nixbld  1 Jan  1970 perms
 drwxr-xr-x - nixbld  1 Jan  1970 size
-drwxr-xr-x - nixbld  1 Jan  1970 symlinks
 drwxr-xr-x - nixbld  1 Jan  1970 time
+drwxr-xr-x - nixbld  1 Jan  1970 symlinks
 drwxr-xr-x - nixbld  1 Jan  1970 git
 drwxr-xr-x - nixbld  1 Jan  1970 icons
 drwxr-xr-x - nixbld  1 Jan  1970 grid
diff --git a/tests/gen/ptest_298b768f6bb48dac.stdout b/tests/gen/ptest_298b768f6bb48dac.stdout
index f494634bd..d3f21c769 100644
--- a/tests/gen/ptest_298b768f6bb48dac.stdout
+++ b/tests/gen/ptest_298b768f6bb48dac.stdout
@@ -2142,6 +2142,7 @@ tests/test_dir
 ├── symlinks
 │  ├── dir
 │  ├── file
+│  ├── ' lorem ipsum'
 │  ├── symlink -> file
 │  ├── symlink2 -> symlink
 │  ├── symlink3 -> dir
diff --git a/tests/gen/ptest_3259dc201df8e734.stdout b/tests/gen/ptest_3259dc201df8e734.stdout
index be9dc3dca..18eef2466 100644
--- a/tests/gen/ptest_3259dc201df8e734.stdout
+++ b/tests/gen/ptest_3259dc201df8e734.stdout
@@ -2042,6 +2042,7 @@ tests/test_dir
 ├── symlinks
 │  ├── dir
 │  ├── file
+│  ├── ' lorem ipsum'
 │  ├── symlink -> file
 │  ├── symlink2 -> symlink
 │  ├── symlink3 -> dir
diff --git a/tests/gen/ptest_41b5466dabf23647.stdout b/tests/gen/ptest_41b5466dabf23647.stdout
index f494634bd..d3f21c769 100644
--- a/tests/gen/ptest_41b5466dabf23647.stdout
+++ b/tests/gen/ptest_41b5466dabf23647.stdout
@@ -2142,6 +2142,7 @@ tests/test_dir
 ├── symlinks
 │  ├── dir
 │  ├── file
+│  ├── ' lorem ipsum'
 │  ├── symlink -> file
 │  ├── symlink2 -> symlink
 │  ├── symlink3 -> dir
diff --git a/tests/gen/ptest_46a8435d247c34c9.stdout b/tests/gen/ptest_46a8435d247c34c9.stdout
index f494634bd..d3f21c769 100644
--- a/tests/gen/ptest_46a8435d247c34c9.stdout
+++ b/tests/gen/ptest_46a8435d247c34c9.stdout
@@ -2142,6 +2142,7 @@ tests/test_dir
 ├── symlinks
 │  ├── dir
 │  ├── file
+│  ├── ' lorem ipsum'
 │  ├── symlink -> file
 │  ├── symlink2 -> symlink
 │  ├── symlink3 -> dir
diff --git a/tests/gen/ptest_4b0ed60c44c669f.stdout b/tests/gen/ptest_4b0ed60c44c669f.stdout
index f494634bd..d3f21c769 100644
--- a/tests/gen/ptest_4b0ed60c44c669f.stdout
+++ b/tests/gen/ptest_4b0ed60c44c669f.stdout
@@ -2142,6 +2142,7 @@ tests/test_dir
 ├── symlinks
 │  ├── dir
 │  ├── file
+│  ├── ' lorem ipsum'
 │  ├── symlink -> file
 │  ├── symlink2 -> symlink
 │  ├── symlink3 -> dir
diff --git a/tests/gen/ptest_57a5aac99c0c821c.stdout b/tests/gen/ptest_57a5aac99c0c821c.stdout
index 7b9eaa1dd..235e8187e 100644
--- a/tests/gen/ptest_57a5aac99c0c821c.stdout
+++ b/tests/gen/ptest_57a5aac99c0c821c.stdout
@@ -4178,6 +4178,7 @@ tests/test_dir/specials:
 tests/test_dir/symlinks:
 dir
 file
+' lorem ipsum'
 symlink -> file
 symlink2 -> symlink
 symlink3 -> dir
diff --git a/tests/gen/ptest_72f8f65472fcd4fa.stdout b/tests/gen/ptest_72f8f65472fcd4fa.stdout
index f494634bd..d3f21c769 100644
--- a/tests/gen/ptest_72f8f65472fcd4fa.stdout
+++ b/tests/gen/ptest_72f8f65472fcd4fa.stdout
@@ -2142,6 +2142,7 @@ tests/test_dir
 ├── symlinks
 │  ├── dir
 │  ├── file
+│  ├── ' lorem ipsum'
 │  ├── symlink -> file
 │  ├── symlink2 -> symlink
 │  ├── symlink3 -> dir
diff --git a/tests/gen/ptest_97958c59351ef010.stdout b/tests/gen/ptest_97958c59351ef010.stdout
index 7b9eaa1dd..235e8187e 100644
--- a/tests/gen/ptest_97958c59351ef010.stdout
+++ b/tests/gen/ptest_97958c59351ef010.stdout
@@ -4178,6 +4178,7 @@ tests/test_dir/specials:
 tests/test_dir/symlinks:
 dir
 file
+' lorem ipsum'
 symlink -> file
 symlink2 -> symlink
 symlink3 -> dir
diff --git a/tests/gen/ptest_c4ead86a12b992a8.stdout b/tests/gen/ptest_c4ead86a12b992a8.stdout
index be9dc3dca..18eef2466 100644
--- a/tests/gen/ptest_c4ead86a12b992a8.stdout
+++ b/tests/gen/ptest_c4ead86a12b992a8.stdout
@@ -2042,6 +2042,7 @@ tests/test_dir
 ├── symlinks
 │  ├── dir
 │  ├── file
+│  ├── ' lorem ipsum'
 │  ├── symlink -> file
 │  ├── symlink2 -> symlink
 │  ├── symlink3 -> dir
diff --git a/tests/gen/ptest_de916a0d5867def3.stdout b/tests/gen/ptest_de916a0d5867def3.stdout
index f494634bd..d3f21c769 100644
--- a/tests/gen/ptest_de916a0d5867def3.stdout
+++ b/tests/gen/ptest_de916a0d5867def3.stdout
@@ -2142,6 +2142,7 @@ tests/test_dir
 ├── symlinks
 │  ├── dir
 │  ├── file
+│  ├── ' lorem ipsum'
 │  ├── symlink -> file
 │  ├── symlink2 -> symlink
 │  ├── symlink3 -> dir
diff --git a/tests/gen/ptest_e1033830f4720a6f.stdout b/tests/gen/ptest_e1033830f4720a6f.stdout
index f494634bd..d3f21c769 100644
--- a/tests/gen/ptest_e1033830f4720a6f.stdout
+++ b/tests/gen/ptest_e1033830f4720a6f.stdout
@@ -2142,6 +2142,7 @@ tests/test_dir
 ├── symlinks
 │  ├── dir
 │  ├── file
+│  ├── ' lorem ipsum'
 │  ├── symlink -> file
 │  ├── symlink2 -> symlink
 │  ├── symlink3 -> dir
diff --git a/tests/gen/ptest_f261ab10a0ea20f.stdout b/tests/gen/ptest_f261ab10a0ea20f.stdout
index f494634bd..d3f21c769 100644
--- a/tests/gen/ptest_f261ab10a0ea20f.stdout
+++ b/tests/gen/ptest_f261ab10a0ea20f.stdout
@@ -2142,6 +2142,7 @@ tests/test_dir
 ├── symlinks
 │  ├── dir
 │  ├── file
+│  ├── ' lorem ipsum'
 │  ├── symlink -> file
 │  ├── symlink2 -> symlink
 │  ├── symlink3 -> dir
diff --git a/tests/gen/ptest_ffbdb9af2de10fa.stdout b/tests/gen/ptest_ffbdb9af2de10fa.stdout
index 140afce8d..17a042d06 100644
--- a/tests/gen/ptest_ffbdb9af2de10fa.stdout
+++ b/tests/gen/ptest_ffbdb9af2de10fa.stdout
@@ -2,8 +2,8 @@ drwxr-xr-x - nixbld  1 Jan  1970 specials
 drwxr-xr-x - nixbld  1 Jan  1970 group
 drwxr-xr-x - nixbld  1 Jan  1970 perms
 drwxr-xr-x - nixbld  1 Jan  1970 size
-drwxr-xr-x - nixbld  1 Jan  1970 symlinks
 drwxr-xr-x - nixbld  1 Jan  1970 time
+drwxr-xr-x - nixbld  1 Jan  1970 symlinks
 drwxr-xr-x - nixbld  1 Jan  1970 git
 drwxr-xr-x - nixbld  1 Jan  1970 icons
 drwxr-xr-x - nixbld  1 Jan  1970 grid
diff --git a/tests/gen/recursive_long_unix.stdout b/tests/gen/recursive_long_unix.stdout
index 7b9eaa1dd..235e8187e 100644
--- a/tests/gen/recursive_long_unix.stdout
+++ b/tests/gen/recursive_long_unix.stdout
@@ -4178,6 +4178,7 @@ tests/test_dir/specials:
 tests/test_dir/symlinks:
 dir
 file
+' lorem ipsum'
 symlink -> file
 symlink2 -> symlink
 symlink3 -> dir
diff --git a/tests/gen/recursive_unix.stdout b/tests/gen/recursive_unix.stdout
index 7b9eaa1dd..235e8187e 100644
--- a/tests/gen/recursive_unix.stdout
+++ b/tests/gen/recursive_unix.stdout
@@ -4178,6 +4178,7 @@ tests/test_dir/specials:
 tests/test_dir/symlinks:
 dir
 file
+' lorem ipsum'
 symlink -> file
 symlink2 -> symlink
 symlink3 -> dir
diff --git a/tests/gen/tree_long_unix.stdout b/tests/gen/tree_long_unix.stdout
index f494634bd..d3f21c769 100644
--- a/tests/gen/tree_long_unix.stdout
+++ b/tests/gen/tree_long_unix.stdout
@@ -2142,6 +2142,7 @@ tests/test_dir
 ├── symlinks
 │  ├── dir
 │  ├── file
+│  ├── ' lorem ipsum'
 │  ├── symlink -> file
 │  ├── symlink2 -> symlink
 │  ├── symlink3 -> dir
diff --git a/tests/gen/tree_unix.stdout b/tests/gen/tree_unix.stdout
index f494634bd..d3f21c769 100644
--- a/tests/gen/tree_unix.stdout
+++ b/tests/gen/tree_unix.stdout
@@ -2142,6 +2142,7 @@ tests/test_dir
 ├── symlinks
 │  ├── dir
 │  ├── file
+│  ├── ' lorem ipsum'
 │  ├── symlink -> file
 │  ├── symlink2 -> symlink
 │  ├── symlink3 -> dir
diff --git a/tests/ptests/ptest_2176b1b061cb7da2.stdout b/tests/ptests/ptest_2176b1b061cb7da2.stdout
index 140afce8d..17a042d06 100644
--- a/tests/ptests/ptest_2176b1b061cb7da2.stdout
+++ b/tests/ptests/ptest_2176b1b061cb7da2.stdout
@@ -2,8 +2,8 @@ drwxr-xr-x - nixbld  1 Jan  1970 specials
 drwxr-xr-x - nixbld  1 Jan  1970 group
 drwxr-xr-x - nixbld  1 Jan  1970 perms
 drwxr-xr-x - nixbld  1 Jan  1970 size
-drwxr-xr-x - nixbld  1 Jan  1970 symlinks
 drwxr-xr-x - nixbld  1 Jan  1970 time
+drwxr-xr-x - nixbld  1 Jan  1970 symlinks
 drwxr-xr-x - nixbld  1 Jan  1970 git
 drwxr-xr-x - nixbld  1 Jan  1970 icons
 drwxr-xr-x - nixbld  1 Jan  1970 grid
diff --git a/tests/ptests/ptest_298b768f6bb48dac.stdout b/tests/ptests/ptest_298b768f6bb48dac.stdout
index f494634bd..d3f21c769 100644
--- a/tests/ptests/ptest_298b768f6bb48dac.stdout
+++ b/tests/ptests/ptest_298b768f6bb48dac.stdout
@@ -2142,6 +2142,7 @@ tests/test_dir
 ├── symlinks
 │  ├── dir
 │  ├── file
+│  ├── ' lorem ipsum'
 │  ├── symlink -> file
 │  ├── symlink2 -> symlink
 │  ├── symlink3 -> dir
diff --git a/tests/ptests/ptest_3259dc201df8e734.stdout b/tests/ptests/ptest_3259dc201df8e734.stdout
index be9dc3dca..18eef2466 100644
--- a/tests/ptests/ptest_3259dc201df8e734.stdout
+++ b/tests/ptests/ptest_3259dc201df8e734.stdout
@@ -2042,6 +2042,7 @@ tests/test_dir
 ├── symlinks
 │  ├── dir
 │  ├── file
+│  ├── ' lorem ipsum'
 │  ├── symlink -> file
 │  ├── symlink2 -> symlink
 │  ├── symlink3 -> dir
diff --git a/tests/ptests/ptest_41b5466dabf23647.stdout b/tests/ptests/ptest_41b5466dabf23647.stdout
index f494634bd..d3f21c769 100644
--- a/tests/ptests/ptest_41b5466dabf23647.stdout
+++ b/tests/ptests/ptest_41b5466dabf23647.stdout
@@ -2142,6 +2142,7 @@ tests/test_dir
 ├── symlinks
 │  ├── dir
 │  ├── file
+│  ├── ' lorem ipsum'
 │  ├── symlink -> file
 │  ├── symlink2 -> symlink
 │  ├── symlink3 -> dir
diff --git a/tests/ptests/ptest_46a8435d247c34c9.stdout b/tests/ptests/ptest_46a8435d247c34c9.stdout
index f494634bd..d3f21c769 100644
--- a/tests/ptests/ptest_46a8435d247c34c9.stdout
+++ b/tests/ptests/ptest_46a8435d247c34c9.stdout
@@ -2142,6 +2142,7 @@ tests/test_dir
 ├── symlinks
 │  ├── dir
 │  ├── file
+│  ├── ' lorem ipsum'
 │  ├── symlink -> file
 │  ├── symlink2 -> symlink
 │  ├── symlink3 -> dir
diff --git a/tests/ptests/ptest_4b0ed60c44c669f.stdout b/tests/ptests/ptest_4b0ed60c44c669f.stdout
index f494634bd..d3f21c769 100644
--- a/tests/ptests/ptest_4b0ed60c44c669f.stdout
+++ b/tests/ptests/ptest_4b0ed60c44c669f.stdout
@@ -2142,6 +2142,7 @@ tests/test_dir
 ├── symlinks
 │  ├── dir
 │  ├── file
+│  ├── ' lorem ipsum'
 │  ├── symlink -> file
 │  ├── symlink2 -> symlink
 │  ├── symlink3 -> dir
diff --git a/tests/ptests/ptest_57a5aac99c0c821c.stdout b/tests/ptests/ptest_57a5aac99c0c821c.stdout
index 7b9eaa1dd..235e8187e 100644
--- a/tests/ptests/ptest_57a5aac99c0c821c.stdout
+++ b/tests/ptests/ptest_57a5aac99c0c821c.stdout
@@ -4178,6 +4178,7 @@ tests/test_dir/specials:
 tests/test_dir/symlinks:
 dir
 file
+' lorem ipsum'
 symlink -> file
 symlink2 -> symlink
 symlink3 -> dir
diff --git a/tests/ptests/ptest_72f8f65472fcd4fa.stdout b/tests/ptests/ptest_72f8f65472fcd4fa.stdout
index f494634bd..d3f21c769 100644
--- a/tests/ptests/ptest_72f8f65472fcd4fa.stdout
+++ b/tests/ptests/ptest_72f8f65472fcd4fa.stdout
@@ -2142,6 +2142,7 @@ tests/test_dir
 ├── symlinks
 │  ├── dir
 │  ├── file
+│  ├── ' lorem ipsum'
 │  ├── symlink -> file
 │  ├── symlink2 -> symlink
 │  ├── symlink3 -> dir
diff --git a/tests/ptests/ptest_97958c59351ef010.stdout b/tests/ptests/ptest_97958c59351ef010.stdout
index 7b9eaa1dd..235e8187e 100644
--- a/tests/ptests/ptest_97958c59351ef010.stdout
+++ b/tests/ptests/ptest_97958c59351ef010.stdout
@@ -4178,6 +4178,7 @@ tests/test_dir/specials:
 tests/test_dir/symlinks:
 dir
 file
+' lorem ipsum'
 symlink -> file
 symlink2 -> symlink
 symlink3 -> dir
diff --git a/tests/ptests/ptest_c4ead86a12b992a8.stdout b/tests/ptests/ptest_c4ead86a12b992a8.stdout
index be9dc3dca..18eef2466 100644
--- a/tests/ptests/ptest_c4ead86a12b992a8.stdout
+++ b/tests/ptests/ptest_c4ead86a12b992a8.stdout
@@ -2042,6 +2042,7 @@ tests/test_dir
 ├── symlinks
 │  ├── dir
 │  ├── file
+│  ├── ' lorem ipsum'
 │  ├── symlink -> file
 │  ├── symlink2 -> symlink
 │  ├── symlink3 -> dir
diff --git a/tests/ptests/ptest_de916a0d5867def3.stdout b/tests/ptests/ptest_de916a0d5867def3.stdout
index f494634bd..d3f21c769 100644
--- a/tests/ptests/ptest_de916a0d5867def3.stdout
+++ b/tests/ptests/ptest_de916a0d5867def3.stdout
@@ -2142,6 +2142,7 @@ tests/test_dir
 ├── symlinks
 │  ├── dir
 │  ├── file
+│  ├── ' lorem ipsum'
 │  ├── symlink -> file
 │  ├── symlink2 -> symlink
 │  ├── symlink3 -> dir
diff --git a/tests/ptests/ptest_e1033830f4720a6f.stdout b/tests/ptests/ptest_e1033830f4720a6f.stdout
index f494634bd..d3f21c769 100644
--- a/tests/ptests/ptest_e1033830f4720a6f.stdout
+++ b/tests/ptests/ptest_e1033830f4720a6f.stdout
@@ -2142,6 +2142,7 @@ tests/test_dir
 ├── symlinks
 │  ├── dir
 │  ├── file
+│  ├── ' lorem ipsum'
 │  ├── symlink -> file
 │  ├── symlink2 -> symlink
 │  ├── symlink3 -> dir
diff --git a/tests/ptests/ptest_f261ab10a0ea20f.stdout b/tests/ptests/ptest_f261ab10a0ea20f.stdout
index f494634bd..d3f21c769 100644
--- a/tests/ptests/ptest_f261ab10a0ea20f.stdout
+++ b/tests/ptests/ptest_f261ab10a0ea20f.stdout
@@ -2142,6 +2142,7 @@ tests/test_dir
 ├── symlinks
 │  ├── dir
 │  ├── file
+│  ├── ' lorem ipsum'
 │  ├── symlink -> file
 │  ├── symlink2 -> symlink
 │  ├── symlink3 -> dir
diff --git a/tests/ptests/ptest_ffbdb9af2de10fa.stdout b/tests/ptests/ptest_ffbdb9af2de10fa.stdout
index 140afce8d..17a042d06 100644
--- a/tests/ptests/ptest_ffbdb9af2de10fa.stdout
+++ b/tests/ptests/ptest_ffbdb9af2de10fa.stdout
@@ -2,8 +2,8 @@ drwxr-xr-x - nixbld  1 Jan  1970 specials
 drwxr-xr-x - nixbld  1 Jan  1970 group
 drwxr-xr-x - nixbld  1 Jan  1970 perms
 drwxr-xr-x - nixbld  1 Jan  1970 size
-drwxr-xr-x - nixbld  1 Jan  1970 symlinks
 drwxr-xr-x - nixbld  1 Jan  1970 time
+drwxr-xr-x - nixbld  1 Jan  1970 symlinks
 drwxr-xr-x - nixbld  1 Jan  1970 git
 drwxr-xr-x - nixbld  1 Jan  1970 icons
 drwxr-xr-x - nixbld  1 Jan  1970 grid