From 20fe0b1e50e09ba6ff72caa59ec03c238a02fab7 Mon Sep 17 00:00:00 2001 From: Deposite Pirate Date: Wed, 18 Feb 2026 05:41:16 +0100 Subject: Fix /dev/null redirections modified: functions/rlsxattr.fish modified: functions/rsdos.fish modified: functions/rsxattr.fish --- functions/rlsxattr.fish | 2 +- functions/rsdos.fish | 2 +- functions/rsxattr.fish | 6 +++--- 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 -- cgit v1.3.1