Re: Porting pam to Solaris, HP-UX, others

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

 



Isn't this what /bin/tr is there for?

sed -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'

is equivalent to

/bin/tr '[A-Z]' '[a-z]'

The latter, IMHO, is easier on the eyes, with less room for error than
the former.

Nico

On Tue, Dec 12, 2000 at 06:08:24PM +0000, David Lee wrote:
> On Mon, 11 Dec 2000, Andrew Morgan wrote:
> 
> >   1. file a bug report for each logical change request - include a patch
> > with that bug report.
> 
> Here's a trivial one (I hope):
> 
> =========================== snip =======================
> *** configure.in.orig	Sun Nov 19 23:54:01 2000
> --- configure.in	Tue Dec 12 18:04:40 2000
> ***************
> *** 30,36 ****
>   CONF_CFLAGS=			; AC_SUBST(CONF_CFLAGS)
>   MKDIR="mkdir -p"		; AC_SUBST(MKDIR)
>   LOCALSRCDIR=`/bin/pwd`		; AC_SUBST(LOCALSRCDIR)
> ! OS=`uname|sed -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXWZ/abcdefghijklmonpqrstuvwxyz/'`
>   AC_SUBST(OS)
>   
>   dnl These are most likely platform specific - I think HPUX differs
> --- 30,36 ----
>   CONF_CFLAGS=			; AC_SUBST(CONF_CFLAGS)
>   MKDIR="mkdir -p"		; AC_SUBST(MKDIR)
>   LOCALSRCDIR=`/bin/pwd`		; AC_SUBST(LOCALSRCDIR)
> ! OS=`uname|sed -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
>   AC_SUBST(OS)
>   
>   dnl These are most likely platform specific - I think HPUX differs
> =========================== snip =======================
> 
> Look closely:
> 1. the lowercase string contained "monp": should be "mnop": transposition
>    of "n" and "o".
> 2. the uppercase string had "W" instead of "Y".
> 
> The first was came to my attention on my Solaris ("SunOS"->"sunns")
> machine.  The second was by subsequent eyeballing of the strings.
> (Have I missed yet others?)
> 
> Hope that helps.
> 
> -- 
> 
>:  David Lee                                I.T. Service          :
>:  Systems Programmer                       Computer Centre       :
>:                                           University of Durham  :
>:  http://www.dur.ac.uk/t.d.lee/            South Road            :
>:                                           Durham                :
>:  Phone: +44 191 374 2882                  U.K.                  :
> 
> 
> 
> _______________________________________________
> 
> Pam-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/pam-list
--





[Index of Archives]     [Fedora Users]     [Kernel]     [Red Hat Install]     [Linux for the blind]     [Gimp]

  Powered by Linux