[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
solaris /usr/ucb/tr fixes edit-pr tr: Bad string.
From: |
doug . mildram |
Subject: |
solaris /usr/ucb/tr fixes edit-pr tr: Bad string. |
Date: |
Thu, 14 Mar 2002 13:31:27 -0500 (EST) |
Surprised that I havent seen this bug reported on this list.
(maybe linux is overwhelmingly more active than Solaris here!)
I've finally debugged "edit-pr" under Solaris (2.6, 2.7, ...)
In truth, there are other (smaller?) bugs, but I'll report them today
and keep them out of THIS email.
Symptom: edit-pr NNNN under solaris may echo a handful of errors :
tr: Bad string
tr: Bad string
tr: Bad string
before bringing up EDITOR.
FIX: in edit-pr, there are (3) instances of something | tr .....
around lines 180-190. I changed all (3) "tr"
to $TR_CMD, and set TR_CMD="/usr/ucb/tr"
MORE ANALYSIS: Solaris has some commands in BOTH /bin
(maybe older or sysVish)
and possibly ALSO in /usr/ucb
while your $path MIGHT have /usr/ucb first, /bin is often before.
Solaris /usr/ucb/tr can handle what edit-pr feeds it, e.g.:
solaris% cat /tmp/trtest
>Audit-Trail:
<Log of specific changes to the PR (multiple lines)>
solaris% cat /tmp/trtest | /usr/ucb/tr '][*+^$|\()&/' '............'
>Audit-Trail:
<Log of specific changes to the PR .multiple lines.>
solaris% cat /tmp/trtest | /bin/tr | tr '][*+^$|\()&/' '............'
tr: Bad string.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- solaris /usr/ucb/tr fixes edit-pr tr: Bad string.,
doug . mildram <=