Re: docs-common/bin db2rpm-info,1.4,1.5

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

 



On Sun, 2006-01-29 at 10:38 -0500, Tommy Reynolds wrote:
> Log Message:
> Allow *any* modern shell.
[...snip...]
> Index: db2rpm-info
> ===================================================================
> RCS file: /cvs/docs/docs-common/bin/db2rpm-info,v
> retrieving revision 1.4
> retrieving revision 1.5
> diff -u -r1.4 -r1.5
> --- db2rpm-info	28 Jan 2006 20:41:45 -0000	1.4
> +++ db2rpm-info	29 Jan 2006 15:38:45 -0000	1.5
> @@ -1,6 +1,6 @@
> -#!/bin/bash
> -ME=$(basename $0)
> -BINDIR=$(dirname $0)
> +#!/bin/sh
> +ME=`basename $0`
> +BINDIR=`dirname $0`
>  USAGE="usage: ${ME} [-o ofile] document.xml"
>  ofile=
>  while getopts o: c
> @@ -10,7 +10,7 @@
>  	*)	echo "${USAGE}" >&2; exit 1;;
>  	esac
>  done
> -shift $(expr ${OPTIND} - 1)
> +shift `expr ${OPTIND} - 1`
>  if [ $# -ne 1 ]; then
>  	echo "${USAGE}" >&2
>  	exit 1

Even better, thanks Tommy!

-- 
Paul W. Frields, RHCE                          http://paul.frields.org/
  gpg fingerprint: 3DA6 A0AC 6D58 FEC4 0233  5906 ACDB C937 BD11 3717
 Fedora Documentation Project: http://fedora.redhat.com/projects/docs/

Attachment: signature.asc
Description: This is a digitally signed message part

-- 

fedora-docs-list@xxxxxxxxxx
To unsubscribe: 
https://www.redhat.com/mailman/listinfo/fedora-docs-list

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Red Hat 9]     [Yosemite News]     [KDE Users]

  Powered by Linux