]> Dogcows Code - chaz/tar/commitdiff
Discard stderr from sort, on some systems it spits out lots of irrelevant info.
authorSergey Poznyakoff <gray@gnu.org.ua>
Tue, 21 Dec 2004 13:27:06 +0000 (13:27 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Tue, 21 Dec 2004 13:27:06 +0000 (13:27 +0000)
tests/extrac04.at
tests/listed02.at

index 4aebf4b4919a75abe0dfb16c873c2aa35c9e5b6c..1cf558a62ff301ecf40bea56f24853d0900e25d7 100644 (file)
@@ -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/
index 78730dd1ee296ec667f284caf7c43774f10bd341..cdfd16d100b2510e3573c4762928b4cd969e952a 100644 (file)
@@ -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
This page took 0.026026 seconds and 4 git commands to generate.