| 1 | Tue Dec 24 22:41:39 EST 1996
|
|---|
| 2 |
|
|---|
| 3 | SCO's awk has a -e option which is similar to gawk's --source option,
|
|---|
| 4 | allowing you to specify the script anywhere on the awk command line.
|
|---|
| 5 |
|
|---|
| 6 | This can be a problem, since gawk will install itself as `awk' in
|
|---|
| 7 | $(bindir). If this is ahead of /bin and /usr/bin in the search path,
|
|---|
| 8 | several of SCO's scripts that use -e will break, since gawk does not
|
|---|
| 9 | accept this option.
|
|---|
| 10 |
|
|---|
| 11 | The solution is simple. After doing a `make install', do:
|
|---|
| 12 |
|
|---|
| 13 | rm -f /usr/local/bin/awk # or wherever it is installed.
|
|---|
| 14 |
|
|---|
| 15 | This removes the `awk' symlink so that SCO's programs will continue
|
|---|
| 16 | to work.
|
|---|
| 17 |
|
|---|
| 18 | If you complain to me about this, I will fuss at you for not having
|
|---|
| 19 | done your homework.
|
|---|
| 20 |
|
|---|
| 21 | Arnold Robbins
|
|---|
| 22 | arnold@gnu.org
|
|---|
| 23 |
|
|---|
| 24 | ---------------------------
|
|---|
| 25 | Date: 14 Oct 1997 12:17 +0000
|
|---|
| 26 | From: Leigh Hebblethwaite <LHebblethwaite@transoft.com>
|
|---|
| 27 | To: bug-gnu-utils@prep.ai.mit.edu
|
|---|
| 28 | To: arnold@gnu.org
|
|---|
| 29 |
|
|---|
| 30 | I've just built gawk 3.0.3 on my system and have experienced a problem
|
|---|
| 31 | with the routine pipeio2.awk in the test suite. However the problem
|
|---|
| 32 | appears to be in the tr command rather than gawk.
|
|---|
| 33 |
|
|---|
| 34 | I'm using SCO Open Server 5. On the version I have there appears to be
|
|---|
| 35 | a problem with tr such that:
|
|---|
| 36 |
|
|---|
| 37 | tr [0-9]. ...........
|
|---|
| 38 |
|
|---|
| 39 | does NOT translate 9s. This means that the output from:
|
|---|
| 40 |
|
|---|
| 41 | echo " 5 6 7 8 9 10 11" | tr [0-9]. ...........
|
|---|
| 42 |
|
|---|
| 43 | is:
|
|---|
| 44 |
|
|---|
| 45 | . . . . 9 .. ..
|
|---|
| 46 |
|
|---|
| 47 | This problem causes the pipeio2 test to be reported as a failure.
|
|---|
| 48 |
|
|---|
| 49 | Note that the following variation on the tr command works fine:
|
|---|
| 50 |
|
|---|
| 51 | tr 0123456789. ...........
|
|---|
| 52 |
|
|---|
| 53 | For your info the details of my system are summarised by the out put
|
|---|
| 54 | of the uname -X command, which is:
|
|---|
| 55 |
|
|---|
| 56 | System = SCO_SV
|
|---|
| 57 | Node = sgscos5
|
|---|
| 58 | Release = 3.2v5.0.2
|
|---|
| 59 | KernelID = 96/01/23
|
|---|
| 60 | Machine = Pentium
|
|---|
| 61 | BusType = EISA
|
|---|
| 62 | Serial = 4EC023443
|
|---|
| 63 | Users = 5-user
|
|---|
| 64 | OEM# = 0
|
|---|
| 65 | Origin# = 1
|
|---|
| 66 | NumCPU = 1
|
|---|
| 67 |
|
|---|
| 68 |
|
|---|