Skip to content

Commit 233b8d5

Browse files
committed
Resolve ksh, pdksh conflict
1 parent a650de3 commit 233b8d5

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/stack-size.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ jobs:
4848
if [ "$OS" = "Linux" ]; then
4949
sudo apt update -y
5050
51-
sudo apt install -y ksh bash dash zsh posh yash
52-
SHELLS="sh ksh bash dash zsh posh yash"
51+
sudo apt install -y bash dash zsh posh yash
52+
SHELLS="sh bash dash zsh posh yash"
5353
5454
# The `mksh` package provides both `mksh` and the legacy-oriented `lksh`
5555
sudo apt install -y mksh
@@ -72,6 +72,13 @@ jobs:
7272
wget https://snapshot.debian.org/archive/debian/20111024T031453Z/pool/main/p/pdksh/pdksh_5.2.14-26_amd64.deb
7373
sudo apt install -y ./pdksh_5.2.14-26_amd64.deb
7474
SHELLS="$SHELLS pdksh"
75+
76+
# `pdksh` would (silently) conflict with `ksh` due to providing a fallback
77+
# for `ksh` proper, so we now remove the fallback and install `ksh`
78+
sudo update-alternatives --remove ksh /bin/pdksh
79+
sudo rm -f /bin/ksh /usr/bin/ksh
80+
sudo apt install ksh
81+
SHELLS="$SHELLS ksh"
7582
fi
7683
if [ "$OS" = "macOS" ]; then
7784
brew install binutils # `readelf`

0 commit comments

Comments
 (0)