mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-02 05:41:16 -03:00
tests: Use command ls to avoid indicators
This can happen if your filesystem on macOS has xattrs, so the newly
created dirs will also have them and `ls` will print an "@" indicator.
Fixes #11137
(cherry picked from commit 414293521e)
This commit is contained in:
@@ -10,7 +10,8 @@ $fish -c ''
|
||||
|
||||
# Check that existing directories kept their permissions, and new directories
|
||||
# have the right permissions according to the XDG Base Directory Specification.
|
||||
ls -ld $dir/old $dir/old/new $dir/old/new/fish | awk '{print $1}'
|
||||
# Use command ls to turn off indicators in case of xattrs or similar.
|
||||
command ls -ld $dir/old $dir/old/new $dir/old/new/fish | awk '{print $1}'
|
||||
# CHECK: drwxr-xr-x
|
||||
# CHECK: drwx------
|
||||
# CHECK: drwx------
|
||||
|
||||
Reference in New Issue
Block a user