فهرست منبع

Discard stderr from sort, on some systems it spits out lots of irrelevant info.

Sergey Poznyakoff 20 سال پیش
والد
کامیت
436741221c
2فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 1 1
      tests/extrac04.at
  2. 3 3
      tests/listed02.at

+ 1 - 1
tests/extrac04.at

@@ -35,7 +35,7 @@ tar -cf archive ./file1 directory
 tar -tf archive \
   --exclude='./*1' \
   --exclude='d*/*1' \
-  --exclude='d*/s*/*2' | sort
+  --exclude='d*/s*/*2' | sort 2>/dev/null
 ],
 [0],
 [directory/

+ 3 - 3
tests/listed02.at

@@ -57,7 +57,7 @@ mv tart/c1 tart/c2
 touch tart/c2/ca3
 
 echo Directory contents
-find tart|sort
+find tart|sort 2>/dev/null
 
 sleep 1
 echo Creating incremental archive
@@ -73,10 +73,10 @@ echo Extracting incremental archive
 # This command should produce three messages about deletion
 # of the existing files, that may appear in any order. Piping
 # to sort makes sure we don't depend on any particular ordering.
-tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 
+tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null 
 
 echo Final files:
-find tart|sort
+find tart|sort 2>/dev/null
 ],
 [0],
 [Create directories