[MPlayer-dev-eng] [PATCH] bugfix: prevent $@ been expansion in cat > <<EOF

Wang YanQing udknight at gmail.com
Fri Sep 21 06:58:15 CEST 2012


The below small shell script show the problem:
#!/bin/bash
cat  <<EOF
\$@
$@
EOF

Signed-off-by: Wang YanQing <udknight at gmail.com>
Index: configure
===================================================================
--- configure	(revision 35205)
+++ configure	(working copy)
@@ -8121,7 +8121,7 @@
 
 AR      = $_ar
 ARFLAGS = rc
-AR_O    = $@
+AR_O    = \$@
 AS      = $_cc
 CC      = $_cc
 CXX     = $_cc


More information about the MPlayer-dev-eng mailing list