Ticket 41: shtool broken on Solaris when using /usr/ucb/tr
shtool hangs indefinitely when using /usr/ucb/tr (if /usr/ucb is first in users PATH).
Example:
$ echo random | /bin/tr 'x-' 'x_'
random
$ echo random | /usr/ucb/tr 'x-' 'x_'
<hang>
Workaround:
Replace tr 'x-' 'x_' with tr 'x\-' 'x_' or hardcode /bin/tr on Solaris.
Remarks:
See also ticket #26.
Fixed in [4500].
Properties:
Type: |
code |
|
Version: |
1.6.2 |
Status: |
closed |
|
Created: |
2004-Mar-24 11:32 |
Severity: |
2 |
|
Last Change: |
2004-Apr-07 10:04 |
Priority: |
4 |
|
Subsystem: |
shtool |
Assigned To: |
rse |
|
Derived From: |
|
Creator: |
anonymous |
Related Check-ins:
2004-Apr-07 09:55 |
• |
Check-in [4500]: Replace "tr 'x-' 'x_'" with "sed -e 's/-/_/g'" constructs because some tr(1) (at least Solaris' /usr/ucb/tr) go into endless loops on (incorrectly assumed) range constructs with no ends. Submitted by: Armin Wolfermann <aw@osn.de> (By rse) |