[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

updatedb conversion to sh bug

From: Frank Berger
Subject: updatedb conversion to sh bug
Date: Sun, 10 Sep 2006 01:27:34 +0200

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: 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 <address@hidden>.

for arg
  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/'`

reply via email to

[Prev in Thread] Current Thread [Next in Thread]