1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-12-29 16:25:35 +01:00

40009: alias -L: Emit aliases that begin with a plus sign correctly.

This commit is contained in:
Daniel Shahaf 2016-11-24 06:57:51 +00:00
parent eccb7471b5
commit 3a8727dc6b
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2016-11-28 Daniel Shahaf <d.s@daniel.shahaf.name>
* 40009: Src/hashtable.c: alias -L: Emit aliases that begin
with a plus sign correctly.
2016-11-24 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
* 40013: Completion/Unix/Type/_date_formats,

View file

@ -1291,9 +1291,9 @@ printaliasnode(HashNode hn, int printflags)
else if (a->node.flags & ALIAS_GLOBAL)
printf("-g ");
/* If an alias begins with `-', then we must output `-- ' *
/* If an alias begins with `-' or `+', then we must output `-- '
* first, so that it is not interpreted as an option. */
if(a->node.nam[0] == '-')
if(a->node.nam[0] == '-' || a->node.nam[0] == '+')
printf("-- ");
}