![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems . |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Trouble with awk | RichieFondel | Shell Programming and Scripting | 1 | 01-17-2008 07:30 AM |
| X trouble | izua | UNIX for Dummies Questions & Answers | 0 | 01-03-2007 06:19 PM |
| The trouble about SU ... | nulnul7 | UNIX for Dummies Questions & Answers | 4 | 10-05-2005 12:39 PM |
| The trouble with... | zazzybob | What's on Your Mind? | 6 | 01-18-2005 06:01 AM |
| trouble | awk | UNIX Desktop for Dummies Questions & Answers | 1 | 11-22-2002 10:51 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Trouble with tr
I'm not sure where to post this but it's happening on a SunOS 5.8 server so I'll try here.
I've discovered some unexpected behavior when using tr. For example: echo a | tr [a-z] [A-Z] Z echo b | tr [a-z] [A-Z] a echo a | tr [a-b] [A-Z] B echo a | tr [a-b] [A-B] B echo a | tr [:lower:] [:upper:] A BUT! is you su to the same user you get the following behavior. echo a | tr [a-z] [A-Z] A echo b | tr [a-z] [A-Z] B echo a | tr [a-b] [A-Z] A echo a | tr [a-b] [A-B] A echo a | tr [:lower:] [:upper:] A The tr was being used in a script where the normal way to run the script was to login as user A and then su to user B and run the script. But someone decided to run the script with out the su part and discovered this. Any body have an explanation? |
|
||||
|
Quote:
-r-xr-xr-x 1 root bin 14596 Jan 5 2000 /usr/xpg4/bin/tr It's got me that's for sure. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|