[FFmpeg-devel] [PATCH] configure: clean whitespace with [:space:]

Zhang Rui bbcallen at gmail.com
Mon Jul 13 10:22:40 CEST 2015


https://en.wikibooks.org/wiki/Regular_Expressions/POSIX_Basic_Regular_Expressions
---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index cc23991..2e54930 100755
--- a/configure
+++ b/configure
@@ -476,7 +476,7 @@ sh_quote(){
 }
 
 cleanws(){
-    echo "$@" | sed 's/^ *//;s/  */ /g;s/ *$//;s/\\r//g'
+    echo "$@" | sed "s/^ *//;s/[[:space:]][[:space:]]*/ /g;s/ *$//"
 }
 
 filter(){
-- 
2.0.0



More information about the ffmpeg-devel mailing list