Skip to content

Commit

Permalink
Merge pull request uutils#6085 from sylvestre/files0-from
Browse files Browse the repository at this point in the history
du: adjust one of the GNU error message as ours is better
  • Loading branch information
cakebaker committed Mar 16, 2024
2 parents e450ce8 + 2a1ac55 commit 15e29b1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions util/build-gnu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ sed -i -e "s/du: invalid -t argument/du: invalid --threshold argument/" -e "s/du
# Remove the extra output check
sed -i -e "s|Try '\$prog --help' for more information.\\\n||" tests/du/files0-from.pl
sed -i -e "s|when reading file names from stdin, no file name of\"|-: No such file or directory\n\"|" -e "s| '-' allowed\\\n||" tests/du/files0-from.pl
sed -i -e "s|-: No such file or directory|cannot access '-': No such file or directory|g" tests/du/files0-from.pl

awk 'BEGIN {count=0} /compare exp out2/ && count < 6 {sub(/compare exp out2/, "grep -q \"cannot be used with\" out2"); count++} 1' tests/df/df-output.sh > tests/df/df-output.sh.tmp && mv tests/df/df-output.sh.tmp tests/df/df-output.sh

Expand Down

0 comments on commit 15e29b1

Please sign in to comment.