OSSP CVS Repository

ossp - Ticket #41
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Attach]  [Edit]  [History

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.

[Append remarks]

Remarks:

See also ticket #26. Fixed in [4500].
[Append remarks]

Properties:

Type: code           Version: 1.6.2 
Status: closed          Created: 2004-Mar-24 11:32
Severity:          Last Change: 2004-Apr-07 10:04
Priority:          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)

CVSTrac 2.0.1