• R/O
  • SSH
  • HTTPS

yash: Commit


Commit MetaInfo

Revision4173 (tree)
Time2021-10-05 22:13:03
Authormagicant

Log Message

Don't print "<< -FOO" as "<<- FOO" (#41650)

Change Summary

Incremental Difference

--- yash/trunk/NEWS (revision 4172)
+++ yash/trunk/NEWS (revision 4173)
@@ -10,6 +10,7 @@
1010 ----------------------------------------------------------------------
1111 Yash 2.52
1212
13+ * "typeset -fp" now correctly distinguishes "<<-FOO" and "<< -FOO".
1314 * Fixed possible memory leak caused by improper use of the realloc
1415 function.
1516 . Updated completion scripts:
--- yash/trunk/parser.c (revision 4172)
+++ yash/trunk/parser.c (revision 4173)
@@ -3849,6 +3849,9 @@
38493849 print_word(pr, rd->rd_filename, indent);
38503850 break;
38513851 case here:
3852+ if (rd->rd_hereend[0] == L'-') {
3853+ wb_wccat(&pr->buffer, L' ');
3854+ }
38523855 wb_cat(&pr->buffer, rd->rd_hereend);
38533856 pl_add(&pr->pending_heredocs, (void *) rd);
38543857 break;
Show on old repository browser