aboutsummaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
Diffstat (limited to 'functions')
-rw-r--r--functions/rlsxattr.fish2
-rw-r--r--functions/rsdos.fish2
-rw-r--r--functions/rsxattr.fish6
3 files changed, 5 insertions, 5 deletions
diff --git a/functions/rlsxattr.fish b/functions/rlsxattr.fish
index e52d820..94d9078 100644
--- a/functions/rlsxattr.fish
+++ b/functions/rlsxattr.fish
@@ -5,6 +5,6 @@ if not check_install 'getfattr' 'attr'
return 1
end
-command getfattr -R -h -d . 2>/dev/null | grep '^# file:' | sed 's/^# file: //'
+command getfattr -R -h -d . &>/dev/null | grep '^# file:' | sed 's/^# file: //'
end
diff --git a/functions/rsdos.fish b/functions/rsdos.fish
index eabe440..2f3463e 100644
--- a/functions/rsdos.fish
+++ b/functions/rsdos.fish
@@ -5,6 +5,6 @@ if not check_install 'setfattr' 'attr'
return 1
end
-command find . -exec setfattr -x user.DOSATTRIB {} + 2>/dev/null
+command find . -exec setfattr -x user.DOSATTRIB {} + &>/dev/null
end
diff --git a/functions/rsxattr.fish b/functions/rsxattr.fish
index bd1456e..974da17 100644
--- a/functions/rsxattr.fish
+++ b/functions/rsxattr.fish
@@ -10,9 +10,9 @@ if not check_install 'awk' 'gawk'
return 1
end
-for file in (getfattr -R -h -d . 2>/dev/null | grep '^# file:' | sed 's/^# file: //')
- for attr in (getfattr -m '^user\.' "$file" 2>/dev/null | awk '/^[^#]/ {print $1}')
- setfattr -x $attr $file 2>/dev/null
+for file in (getfattr -R -h -d . &>/dev/null | grep '^# file:' | sed 's/^# file: //')
+ for attr in (getfattr -m '^user\.' "$file" &>/dev/null | awk '/^[^#]/ {print $1}')
+ setfattr -x $attr $file &>/dev/null
end
end