eval.c (b9f2f8c36f23f48488e9f8ae2b018d3fa6c3a44b) eval.c (aeb5d065044ee6733a7fee14edb52959a28c1ab4)
1/*-
2 * Copyright (c) 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Kenneth Almquist.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 685 unchanged lines hidden (view full) ---

694 /* Print the command if xflag is set. */
695 if (xflag) {
696 char sep = 0;
697 const char *p;
698 out2str(ps4val());
699 for (sp = varlist.list ; sp ; sp = sp->next) {
700 if (sep != 0)
701 out2c(' ');
1/*-
2 * Copyright (c) 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Kenneth Almquist.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 685 unchanged lines hidden (view full) ---

694 /* Print the command if xflag is set. */
695 if (xflag) {
696 char sep = 0;
697 const char *p;
698 out2str(ps4val());
699 for (sp = varlist.list ; sp ; sp = sp->next) {
700 if (sep != 0)
701 out2c(' ');
702 p = sp->text;
703 while (*p != '=' && *p != '\0')
704 out2c(*p++);
705 if (*p != '\0') {
706 out2c(*p++);
702 p = strchr(sp->text, '=');
703 if (p != NULL) {
704 p++;
705 outbin(sp->text, p - sp->text, out2);
707 out2qstr(p);
706 out2qstr(p);
708 }
707 } else
708 out2qstr(sp->text);
709 sep = ' ';
710 }
711 for (sp = arglist.list ; sp ; sp = sp->next) {
712 if (sep != 0)
713 out2c(' ');
714 /* Disambiguate command looking like assignment. */
715 if (sp == arglist.list &&
716 strchr(sp->text, '=') != NULL &&

--- 513 unchanged lines hidden ---
709 sep = ' ';
710 }
711 for (sp = arglist.list ; sp ; sp = sp->next) {
712 if (sep != 0)
713 out2c(' ');
714 /* Disambiguate command looking like assignment. */
715 if (sp == arglist.list &&
716 strchr(sp->text, '=') != NULL &&

--- 513 unchanged lines hidden ---