mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-04 02:40:49 +02:00
commit bash-20150612 snapshot
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user