Fix: "$_" does not expand as expected on Ubuntu 75/73375/2
authorAnil Belur <abelur@linuxfoundation.org>
Wed, 8 Jan 2025 07:20:40 +0000 (17:20 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Wed, 8 Jan 2025 07:29:23 +0000 (17:29 +1000)
commit8b4402ebcaf268a3e9f182434ecbe433d7a3ceda
tree4cc18406ca506bcee465f9333df85ad63081a866
parent4eb9ea0f788485300a004e841c98e408cf8c8213
Fix: "$_" does not expand as expected on Ubuntu

While using Ubuntu as default builder nodes.
The .bashrc file does not process '$_' expanding
the output correctly as provided in previous line.
Therefore explicitly use the dirname or use /bin/bash.

This results in a copy error.

This happens is because by default Ubuntu "/bin/sh"
points to "/bin/dash" while on CentOS / RedHat points to
"/bin/bash".

Issue: RELENG-5666
Change-Id: Ibb4e0daeaf9730464451e229289b687aa2fb5389
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
releasenotes/notes/fix-ubuntu-dash-shell-issue-36e644c652ce1cd2.yaml [new file with mode: 0644]
shell/sysstat.sh