public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7be2815
)
changed homefromsubdir a little
author
eck
<none@none>
Tue, 16 Oct 1990 10:07:12 +0000
(10:07 +0000)
committer
eck
<none@none>
Tue, 16 Oct 1990 10:07:12 +0000
(10:07 +0000)
mach/sun3/libcc.ansi/homefromsubdir
patch
|
blob
|
history
diff --git
a/mach/sun3/libcc.ansi/homefromsubdir
b/mach/sun3/libcc.ansi/homefromsubdir
index
64b05ca
..
8a159a0
100755
(executable)
--- a/
mach/sun3/libcc.ansi/homefromsubdir
+++ b/
mach/sun3/libcc.ansi/homefromsubdir
@@
-1,11
+1,11
@@
if [ $# = 1 ]
then
- NAM=`expr $1 : '^\(\
.
.*\)'`
- if [ X$NAM = X ]
+ NAM=`expr $1 : '^\(\
/
.*\)'`
+ if [ X$NAM
!
= X ]
then
NAM=$1
else
- NAM=../$
NAM
+ NAM=../$
1
fi
echo $NAM
exit 0