commit bash-20150612 snapshot

This commit is contained in:
Chet Ramey
2015-06-17 08:34:54 -04:00
parent 1573ba78f3
commit bd6a350e7e
20 changed files with 220 additions and 53 deletions
+1 -1
View File
@@ -2776,7 +2776,7 @@ mk_alexpansion (s)
strcpy (r, s);
/* If the last character in the alias is a newline, don't add a trailing
space to the expansion. Works with shell_getc above. */
if (r[l - 1] != ' ' && r[l - 1] != '\n')
if (r[l - 1] != ' ' && r[l - 1] != '\n' && shellmeta(r[l - 1]) == 0)
r[l++] = ' ';
r[l] = '\0';
return r;