Переглянути джерело

Pipe the output from `tar xfv' through sort.

Sergey Poznyakoff 20 роки тому
батько
коміт
9106e53684
1 змінених файлів з 2 додано та 2 видалено
  1. 2 2
      tests/pipe.at

+ 2 - 2
tests/pipe.at

@@ -36,7 +36,7 @@ genfile --length 10240 --pattern zeros > directory/file1
 genfile --length 13 > directory/file2
 tar cf archive directory|sort 2>/dev/null
 mv directory orig
-cat archive | tar xfv -
+cat archive | tar xfv - | sort 2>/dev/null
 echo "separator"
 cmp orig/file1 directory/file1
 echo "separator"
@@ -49,4 +49,4 @@ separator
 separator
 ])
 
-AT_CLEANUP
+AT_CLEANUP