public inbox for gnats-devel@sourceware.org
 help / color / mirror / Atom feed
* PATCH: Errors from tr when invoking send-pr v4 on Solaris
@ 2001-05-12  5:29 Yngve Svendsen
  2001-05-27  8:44 ` Milan Zamazal
  0 siblings, 1 reply; 2+ messages in thread
From: Yngve Svendsen @ 2001-05-12  5:29 UTC (permalink / raw)
  To: gnats-devel; +Cc: Milan Zamazal

In the current version 4 CVS, send-pr contains 'tr' expressions that need 
to be quoted in order to work on Solaris. The patch below replaces ][ with 
\]\[ in these expressions. This should have no adverse effects in OSes that 
don't need this quoting in their tr, such as Linux (I have tested this on a 
Linux box).

Yngve Svendsen


Patch against current version 4 CVS:

Index: send-pr.sh
===================================================================
RCS file: /cvs/gnats/gnats/send-pr/send-pr.sh,v
retrieving revision 1.16
diff -u -p -r1.16 send-pr.sh
--- send-pr.sh  2001/04/08 18:28:25     1.16
+++ send-pr.sh  2001/05/12 12:22:26
@@ -371,7 +371,7 @@ __EOF__
                         else
                                 desc="<${values} (one line)>";
                         fi
-                       dpat=`echo "$desc" | tr '][*+^$|\()&/' '............'`
+                       dpat=`echo "$desc" | tr '\]\[*+^$|\()&/' 
'............'`
                         echo "/^>${fieldname}:/ s/${dpat}//" >> $FIXFIL
                     fi
                     echo "${fmtname}${desc}" >> $file
@@ -382,7 +382,7 @@ __EOF__
                         desc="  $default_val";
                     else
                         desc="  <`${BINDIR}/query-pr --field-description 
$fieldname` (multiple lines)>";
-                       dpat=`echo "$desc" | tr '][*+^$|\()&/' '............'`
+                       dpat=`echo "$desc" | tr '\]\[*+^$|\()&/' 
'............'`
                         echo "s/^${dpat}//" >> $FIXFIL
                     fi
                     echo "${fmtname}" >> $file;
@@ -394,7 +394,7 @@ __EOF__
                         desc="${default_val}"
                     else
                         desc="<`${BINDIR}/query-pr --field-description 
$fieldname` (one line)>"
-                       dpat=`echo "$desc" | tr '][*+^$|\()&/' '............'`
+                       dpat=`echo "$desc" | tr '\]\[*+^$|\()&/' 
'............'`
                         echo "/^>${fieldname}:/ s/${dpat}//" >> $FIXFIL
                     fi
                     echo "${fmtname}${desc}" >> $file

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: PATCH: Errors from tr when invoking send-pr v4 on Solaris
  2001-05-12  5:29 PATCH: Errors from tr when invoking send-pr v4 on Solaris Yngve Svendsen
@ 2001-05-27  8:44 ` Milan Zamazal
  0 siblings, 0 replies; 2+ messages in thread
From: Milan Zamazal @ 2001-05-27  8:44 UTC (permalink / raw)
  To: Yngve Svendsen; +Cc: gnats-devel

>>>>> "YS" == Yngve Svendsen <yngve.svendsen@clustra.com> writes:

    YS> In the current version 4 CVS, send-pr contains 'tr' expressions
    YS> that need to be quoted in order to work on Solaris. The patch
    YS> below replaces ][ with \]\[ in these expressions. This should
    YS> have no adverse effects in OSes that don't need this quoting in
    YS> their tr, such as Linux (I have tested this on a Linux box).

Applied, thanks.

Regards,

Milan Zamazal

-- 
Here is my advice, don't try to program the bleeding edge for the
general populace unless you really, really, really like migraines.
						   Neal H. Walfield

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-05-27  8:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-12  5:29 PATCH: Errors from tr when invoking send-pr v4 on Solaris Yngve Svendsen
2001-05-27  8:44 ` Milan Zamazal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).