diff options
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | src/expand.c | 3 |
2 files changed, 1 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog index c94dff8..a64e030 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,7 @@ 2011-03-10 Jilles Tjoelker <jilles@stack.nl> * Replace GPL noclobberopen code with the FreeBSD version. + * Do not split the result of tilde expansion. 2010-11-28 Maciej Żenczykowski <zenczykowski@gmail.com> diff --git a/src/expand.c b/src/expand.c index 1b77b7c..6bee5c5 100644 --- a/src/expand.c +++ b/src/expand.c @@ -364,7 +364,6 @@ exptilde(char *startp, char *p, int flag) char *name; const char *home; int quotes = flag & QUOTES_ESC; - int startloc; name = p + 1; @@ -393,9 +392,7 @@ done: if (!home || !*home) goto lose; *p = c; - startloc = expdest - (char *)stackblock(); strtodest(home, SQSYNTAX, quotes); - recordregion(startloc, expdest - (char *)stackblock(), 0); return (p); lose: *p = c; |