[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Incorrect signal handling under SYSV machines



[ Tony Kimball <alk@pobox.com> 1997-4 -2 23:09 -0500 ]
|---
| Very strange indeed:
|
| ; l='@(#)RELEASE VERSION HPC 2.0 TMrts 10.1-integration.2-FreeBSD/x86'
| ; echo $l
| @(#)RELEASE VERSION HPC 2.0 TMrts 10.1-integration.2-FreeBSD/x86
| ; k=`{strings lib/libtmrts_g.a | grep RELEASE\ VERSION | head -1| sed
s,'"',,g}
| ; echo $k > k.out
| ; echo $l > l.out
| ; diff *.out
| ; expr $l : $e
| expr $l : $e
| HPC 2.0 TMrts 10.1-integration.2-FreeBSD/x86
| ; expr $k : $e
| expr $k : $e
| expr: syntax error
|
| Go figure.

$l is one word.  $k is 5 words.  Try expr $^k : $e
Or -- better -- do k=``\n{strings ...}

- Harald