Job spooling tools
Go to file
Jan Staněk 55072d7e68
shell: add preceding newline to delimiter
at uses heredoc redirection to pass the script being executed
into user's defined $SHELL. However, the heredoc delimiter
is directly concatenated to the script's contents;
if these contents do not end with a newline,
the delimiter is attached to the last line of the script.

This patch adds a single newline to be always emmited before the
delimiter. This guarantees the delimiter is always on it's own
line. In case a newline is already present at the end of the original
script, this simply adds a single empty line; I cannot think of any
complication that could result from that.

Resolves: rhbz#2070858
Signed-off-by: Jan Staněk <jstanek@redhat.com>
2022-04-01 13:13:19 +02:00
tests RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:58:13 +02:00
.gitignore RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:58:13 +02:00
at-3.1.14-fix_no_export.patch RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:58:13 +02:00
at-3.1.14-mailwithhostname.patch RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:58:13 +02:00
at-3.1.14-opt_V.patch RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:58:13 +02:00
at-3.1.14-usePOSIXtimers.patch RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:58:13 +02:00
at-3.1.16-clear-nonjobs.patch RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:58:13 +02:00
at-3.1.16-fclose-error.patch RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:58:13 +02:00
at-3.1.18-make.patch RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:58:13 +02:00
at-3.1.18-nitpicks.patch RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:58:13 +02:00
at-3.1.18-noabort.patch RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:58:13 +02:00
at-3.1.18-utc-dst.patch RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:58:13 +02:00
at-3.1.20-aborted-jobs.patch RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:58:13 +02:00
at-3.1.20-lock-locks.patch RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:58:13 +02:00
at-3.1.20-log-jobs.patch RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:58:13 +02:00
at-3.1.20-pam.patch RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:58:13 +02:00
at-3.1.20-shell.patch shell: add preceding newline to delimiter 2022-04-01 13:13:19 +02:00
at-3.1.23-document-n.patch RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:58:13 +02:00
at-3.2.23-coverity-fix.patch Patch issues found by coverity 2021-04-29 12:49:18 +02:00
at-aarch64.patch RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:58:13 +02:00
at.spec shell: add preceding newline to delimiter 2022-04-01 13:13:19 +02:00
atd.sysconf RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:58:13 +02:00
atd.systemd RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:58:13 +02:00
gating.yaml Add RHEL gating configuration 2021-07-15 02:41:53 +02:00
pam_atd RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:58:13 +02:00
sources RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:58:13 +02:00