ProcessOne SiteCustomer Helpdesk and FeedbackFollow us on Twitter
 
   
 
ceanctl: Spurious output from `tr` command
Posted: 28 May 2013 11:40 PM   [ Ignore ]
Newbie
Rank
Total Posts:  6
Joined  2013-05-28

Sometimes when I run a ceanctl command, it says:

Trace:

ceanctl start
usage
tr [-Ccsu] string1 string2
       tr [
-Ccu] -d string1
       tr [
-Ccu] -s string1
       tr [
-Ccu] -ds string1 string2
usage
tr [-Ccsu] string1 string2
       tr [
-Ccu] -d string1
       tr [
-Ccu] -s string1
       tr [
-Ccu] -ds string1 string2 

As a mitigation, I quit my terminal and try again.

System:

* CEAN 2.0
* Erlang 15
* Mac OS X 10.8

Profile
 
 
Posted: 29 May 2013 09:34 AM   [ Ignore ]   [ # 1 ]
Senior Member
Avatar
RankRankRankRank
Total Posts:  134
Joined  2006-11-13

we used old syntax for tr for backward compatibility on systems like sunos
you can safely change this

uname -LANG=C tr [A-Z] [a-z] 

to this

uname -LANG=C tr A-Z a-

or even hardcode os and cpu in your ceanctl script to avoid any possible issue

Profile
 
 
Posted: 29 May 2013 09:41 AM   [ Ignore ]   [ # 2 ]
Senior Member
Avatar
RankRankRankRank
Total Posts:  134
Joined  2006-11-13

by the way, this ARCHDIR setting is quite obsolete now and can safely be removed
it was used in earlier version of CEAN when you could install one same tarball on heterogeneous systems

Profile