[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: |
anonymous |
Subject: |
[bug #44768] gdiffmk(1) is not Solaris 10 /bin/sh compatible - PATCH provided |
Date: |
Wed, 08 Apr 2015 07:05:23 +0000 |
User-agent: |
Mozilla/5.0 (X11; SunOS i86pc; rv:29.0) Gecko/20100101 Firefox/29.0 |
URL:
<http://savannah.gnu.org/bugs/?44768>
Summary: gdiffmk(1) is not Solaris 10 /bin/sh compatible -
PATCH provided
Project: GNU troff
Submitted by: None
Submitted on: Wed 08 Apr 2015 07:05:21 AM UTC
Severity: 3 - Normal
Item Group: Crash
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Planned Release: None
_______________________________________________________
Details:
Greetings,
When building the git version of groff (2015/04/04) to check the fix
for https://savannah.gnu.org/bugs/?44708, I discovered that the
installed gdiffmk(1) did not function, with the error:
syntax error at line 22: `cmd=$' unexpected
Of all the installed shell scripts (11 in total), gdiffmk(1) is the
only one to use the $(...) syntax, instead of the older `...` syntax,
and thus the only one to fail Solaris 10 a test of the form:
/bin/sh -n <file>
Only a seven instances exist:
grep -n '$(' /pkgs/64-bit/release/groff-git_2014_04_04/bin/gdiffmk
22:cmd=$( basename $0 )
112: "Cannot write directory \`$( dirname "$2" )'."
166: ADDMARK=$( RequiresArgument "${OPTION}" $2 ) &&
170: CHANGEMARK=$( RequiresArgument "${OPTION}" $2 ) &&
174: DELETEMARK=$( RequiresArgument "${OPTION}" $2 ) &&
181: MARK1=$( RequiresArgument "${OPTION}" $2 ) &&
194: DIFFCMD=$( RequiresArgument "${OPTION}" $2 ) &&
The attached patch, allows the script to pass /bin/sh -n test on
Solaris 10, as well as simple run tests such as, 'gdiffmk' and
'gdiffmk --version', and 'gmake check' (from source root), no further
testing has not been conducted.
Regards,
Peter Bray
Sydney, Australia
PS: This patch is submitted in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. I hereby donate
it to the groff project, to do with as the maintainer(s) see fit,
including distribution under any license or licenses they deem fit,
now or in the future. Copyright may be assigned as the maintainer(s)
see fit. It yours!
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Wed 08 Apr 2015 07:05:22 AM UTC Name:
groff-git_2014_04_04-solaris_bin_sh.patch Size: 1kB By: None
<http://savannah.gnu.org/bugs/download.php?file_id=33589>
_______________________________________________________
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 <=
- [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, 2015/04/11
- [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