Hello there,

the updatedb-script of my findutils package has a little mistake in it that keeps it from running.
Version is 4.1.20-r1 on architecture armeb (Linksys NSLU2, UNSLUNG).
Right at the beginning, David MacKenzie forgot to change the variable for the command line options from $args to $@ (s. below).
I changed it and now the script works.


Best regards
Frank Berger
------------
[...]
# csh original by James Woods; sh conversion by David MacKenzie.

usage="\
Usage: updatedb [--localpaths='dir1 dir2...'] [--netpaths='dir1 dir2...']
       [--prunepaths='dir1 dir2...'] [--prunefs='fs1 fs2...']
       [--output=dbfile] [--netuser=user] [--localuser=user]
       [--old-format] [--version] [--help]

  Report bugs to <bug-findutils@gnu.org>.
       "

old=no
for arg
do
  opt=`echo $args|sed 's/^\([^=]*\).*/\1/'`
  val=`echo $args|sed 's/^[^=]*=\(.*\)/\1/'`
----
The last two lines should be:
----
  opt=`echo $@|sed 's/^\([^=]*\).*/\1/'`
  val=`echo $@|sed 's/^[^=]*=\(.*\)/\1/'`
----



_______________________________________________
Bug-findutils mailing list
Bug-findutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-findutils

Reply via email to