[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug #44768] gdiffmk(1) is not Solaris 10 /bin/sh compatible - PATCH
From: |
Steffen Nurpmeso |
Subject: |
Re: [bug #44768] gdiffmk(1) is not Solaris 10 /bin/sh compatible - PATCH provided |
Date: |
Fri, 10 Apr 2015 22:42:10 +0200 |
User-agent: |
s-nail v14.7.11-348-g89f7a58 |
Mike Bianchi <address@hidden> wrote:
|Peter,
|
|Thanks for looking into this.
|The fundamental problem is I attempt to process both -a A \
| and -aA without
|using getopts .
|
| Is getopts universal across sh/ksh/bash/zsh ?
It is part of POSIX since Issue 4, July 1992. I wouldn't care...
But to be truly portable in this mess all around us it may be useful
to do something like this (just did this three days ago for
mdocmx.sh and its compatibility with old Bourne shells etc.):
( echo "${0##*/}" ) >/dev/null 2>&1 && eval 'p="${0##*/}"' || p="${0}"
A very valuable source of shell history is provided by
Sven Mascheck [1], i can only recommend it highly.
'Took a quick look regarding getopts, if you don't use $OPTIND you
may be backward compatible to the eighties, shall this be your
desire.
[1] www.in-ulm.de/~mascheck
|If so, then I can repair this easily.
--steffen
- [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, 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
- [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