# HG changeset patch # User Jim Meyering # Date 1209548166 -7200 # Node ID a6cd3ce278f5be87f2b663d7c7abfac4d68c43a0 # Parent e435c0a7bace39f4d6e3487861fa5d35d67651fd vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer take more than one file argument, so . Add quotes, just in case $dir ever contains a shell meta-character. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-04-30 Jim Meyering + + vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash + * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer + take more than one file argument, so . Add quotes, just in case $dir + ever contains a shell meta-character. + 2008-04-29 Eric Blake Optimize getndelim2 to use block operations when possible. diff --git a/build-aux/vc-list-files b/build-aux/vc-list-files --- a/build-aux/vc-list-files +++ b/build-aux/vc-list-files @@ -2,7 +2,7 @@ # List version-controlled file names. # Print a version string. -scriptversion=2008-04-03.17 +scriptversion=2008-04-30.11 # Copyright (C) 2006-2008 Free Software Foundation, Inc. @@ -87,7 +87,7 @@ sub(/CVS\/Entries/, "", f); \ print f $2; \ }}'\'' \ - $(find ${*-*} -name Entries -print) /dev/null' $postprocess + $(find "$dir" -name Entries -print) /dev/null' $postprocess fi else echo "$0: Failed to determine type of version control used in `pwd`" 1>&2