Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/bin/sh



Module Name:    src
Committed By:   kre
Date:           Sat Jun 15 06:07:14 UTC 2024

Modified Files:
        src/bin/sh: jobs.c

Log Message:
When generating the text that identifies the command for the job tree
from the parse tree data, be more intelligent about where we stick ';'
characters.

Previously, given:

        (sleep 2 & sleep 3 & sleep 10&) & jobs -l

The output would be something like

[1] + 23631 Running           (sleep 2 &; sleep 3 &; sleep 10 &)

That's nonsense (even if clear enough).   After this change the
output will be:

[1] + 12116 Running           (sleep 2 & sleep 3 & sleep 10 &)

There are a few other cases where an incorrect ';' will also be suppressed.


To generate a diff of this commit:
cvs rdiff -u -r1.120 -r1.121 src/bin/sh/jobs.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index