mirror of
git://git.suckless.org/sbase
synced 2026-01-26 13:43:17 +00:00
When a value was assigned to a register using the 's' command we were assigning the full value from execution stack, overwriting the next pointer of the register stack with the next pointer of the execution stack.
19 lines
198 B
Bash
Executable File
19 lines
198 B
Bash
Executable File
#!/bin/sh
|
|
|
|
tmp=$$.tmp
|
|
|
|
trap 'rm -f $tmp' EXIT
|
|
trap 'exit $?' HUP INT TERM
|
|
|
|
cat <<'EOF' > $tmp
|
|
1
|
|
EOF
|
|
|
|
$EXEC ../dc -i <<'EOF' | diff -u - $tmp
|
|
[Splp 1+dsps. 0 Lps. 1Q]s<1>
|
|
|
|
1dsps.
|
|
lpl<1>xs.
|
|
lpps.
|
|
EOF
|