1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-18 15:21:16 +02:00

43546: "typeset -p" should show -U flag

This commit is contained in:
Stephane Chazelas 2018-09-24 22:05:50 +01:00 committed by Peter Stephenson
parent 67ce7c2bf8
commit a75b47973d
2 changed files with 12 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2018-09-25 Peter Stephenson <p.stephenson@samsung.com>
* Stephane: 43546: "typeset -p" should show presence of -U
option.
2018-09-24 dana <dana@dana.is>
* Takeshi Banse: users/23642: Completion/Unix/Type/_files: Revert

View file

@ -5861,6 +5861,13 @@ printparamnode(HashNode hn, int printflags)
}
}
}
if (p->node.flags & PM_UNIQUE) {
if (!doneminus) {
putchar('-');
doneminus = 1;
}
putchar('U');
}
if (doneminus)
putchar(' ');
}