packages: metamail/htmlview - ls -l /proc/self/fd/1 | grep 'pipe:' is ALWAY...

baggins baggins at pld-linux.org
Tue May 5 14:17:55 CEST 2009


Author: baggins                      Date: Tue May  5 12:17:55 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- ls -l /proc/self/fd/1 | grep 'pipe:' is ALWAYS a pipe, use $$ not self

---- Files affected:
packages/metamail:
   htmlview (1.3 -> 1.4) 

---- Diffs:

================================================================
Index: packages/metamail/htmlview
diff -u packages/metamail/htmlview:1.3 packages/metamail/htmlview:1.4
--- packages/metamail/htmlview:1.3	Sat Mar 18 15:30:25 2006
+++ packages/metamail/htmlview	Tue May  5 14:17:49 2009
@@ -31,7 +31,7 @@
 		REMOTE=0
 	fi
 fi
-if ls -l /proc/self/fd/1 | grep 'pipe:' >/dev/null 2>&1; then
+if ls -l /proc/$$/fd/1 | grep 'pipe:' >/dev/null 2>&1; then
 	STDOUT_IS_PIPE=1
 else
 	STDOUT_IS_PIPE=0
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/metamail/htmlview?r1=1.3&r2=1.4&f=u



More information about the pld-cvs-commit mailing list