tests: convert "... env -- prog --version" uses

E.g.,

-test "$VERBOSE" = yes && env -- pwd --version
+print_ver_ pwd

git grep -l 'VERBOSE.*--version'|xargs perl -pi -e \
  's/test "\$VERBOSE" = yes && env -- (\w+) --version/print_ver_ $1/'
This commit is contained in:
Jim Meyering committed 2010-11-17 21:46:22 +01:00
1 parent 293c37b906
commit a8c8484ee1
6 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && env -- printenv --version
print_ver_ printenv
# Without arguments, printenv behaves like env. Some shells provide
# printenv as a builtin, so we must invoke it via "env".
+1 -1
View File
@@ -19,7 +19,7 @@
prog="$abs_top_builddir/src/printf"
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && env -- printf --version
print_ver_ printf
getlimits_
+1 -1
View File
@@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && env -- printf --version
print_ver_ printf
env printf '\x7e3\n' > out || fail=1
cat <<\EOF > exp
+1 -1
View File
@@ -19,7 +19,7 @@
prog=printf
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && env -- printf --version
print_ver_ printf
require_ulimit_
+1 -1
View File
@@ -21,7 +21,7 @@
. $srcdir/require-perl
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && env -- pwd --version
print_ver_ pwd
require_readable_root_
+1 -1
View File
@@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && env -- pwd --version
print_ver_ pwd
mkdir -p a/b || framework_failure
ln -s a/b c || framework_failure