[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #44768] gdiffmk(1) is not Solaris 10 /bin/sh compatible - PATCH pro
From: |
Peter Bray |
Subject: |
[bug #44768] gdiffmk(1) is not Solaris 10 /bin/sh compatible - PATCH provided |
Date: |
Sun, 12 Apr 2015 02:24:00 +0000 |
User-agent: |
Mozilla/5.0 (X11; SunOS i86pc; rv:29.0) Gecko/20100101 Firefox/29.0 |
Follow-up Comment #3, bug #44768 (project groff):
Sorry I was wrong about the "shift", the right number of shifts are present.
I decided to continue to test against Solaris 10 /bin/sh, and the following
patch (attached to preserve whitespace) seems to be fine.
Comments:
- Changed the for loop to a while loop
- Not all test(1) commands support -e (which is truly sad)
Basic execution runs to completion. Modified Line shows change bar :-)
Regards,
Peter
--- ./contrib/gdiffmk/gdiffmk.sh.orig 2015-04-10 19:37:02.502452458 +1000
+++ ./contrib/gdiffmk/gdiffmk.sh 2015-04-12 11:58:07.794180659 +1000
@@ -82,7 +82,7 @@
;;
esac
- if test ! -e "$2"
+ if test ! -f "$2"
then
Exit $1 "File `$2' not found."
fi
@@ -159,8 +159,10 @@
DIFFCMD=diff
D_option=
br=.br
-for OPTION
+
+while [ $# -gt 0 ]
do
+ OPTION="${1}"
case "${OPTION}" in
-a*)
ADDMARK=`RequiresArgument "${OPTION}" $2` &&
(file #33643)
_______________________________________________________
Additional Item Attachment:
File name: gdiffmk.patch Size:0 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?44768>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bug #44768] gdiffmk(1) is not Solaris 10 /bin/sh compatible - PATCH provided, anonymous, 2015/04/08
- [bug #44768] gdiffmk(1) is not Solaris 10 /bin/sh compatible - PATCH provided, Werner LEMBERG, 2015/04/10
- [bug #44768] gdiffmk(1) is not Solaris 10 /bin/sh compatible - PATCH provided, anonymous, 2015/04/10
- [bug #44768] gdiffmk(1) is not Solaris 10 /bin/sh compatible - PATCH provided,
Peter Bray <=
- [bug #44768] gdiffmk(1) is not Solaris 10 /bin/sh compatible - PATCH provided, Michael H Bianchi, 2015/04/12
- [bug #44768] gdiffmk(1) is not Solaris 10 /bin/sh compatible - PATCH provided, Werner LEMBERG, 2015/04/12
- [bug #44768] gdiffmk(1) is not Solaris 10 /bin/sh compatible - PATCH provided, Michael H Bianchi, 2015/04/12
- Re: [bug #44768] gdiffmk(1) is not Solaris 10 /bin/sh compatible - PATCH provided, Werner LEMBERG, 2015/04/12
- [bug #44768] gdiffmk(1) is not Solaris 10 /bin/sh compatible - PATCH provided, Peter Bray, 2015/04/12
- [bug #44768] gdiffmk(1) is not Solaris 10 /bin/sh compatible - PATCH provided, Werner LEMBERG, 2015/04/13
- [bug #44768] gdiffmk(1) is not Solaris 10 /bin/sh compatible - PATCH provided, Peter Bray, 2015/04/13
- [bug #44768] gdiffmk(1) is not Solaris 10 /bin/sh compatible - PATCH provided, Michael H Bianchi, 2015/04/13
- [bug #44768] gdiffmk(1) is not Solaris 10 /bin/sh compatible - PATCH provided, Michael H Bianchi, 2015/04/13
- [bug #44768] gdiffmk(1) is not Solaris 10 /bin/sh compatible - PATCH provided, Peter Bray, 2015/04/13