diff options
Diffstat (limited to 'usr/src/lib/libshell/common/sh/macro.c')
-rw-r--r-- | usr/src/lib/libshell/common/sh/macro.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/lib/libshell/common/sh/macro.c b/usr/src/lib/libshell/common/sh/macro.c index 7b1ab77b48..cb938764d6 100644 --- a/usr/src/lib/libshell/common/sh/macro.c +++ b/usr/src/lib/libshell/common/sh/macro.c @@ -439,7 +439,7 @@ static void copyto(register Mac_t *mp,int endch, int newquote) mp->sp = NIL(Sfio_t*); mp->quote = newquote; first = cp = fcseek(0); - if(!mp->quote && *cp=='~') + if(!mp->quote && *cp=='~' && cp[1]!=LPAREN) tilde = stktell(stkp); /* handle // operator specially */ if(mp->pattern==2 && *cp=='/') |