Skip to content

Commit

Permalink
prompt: fix not properly set "$?" in "${PS1@P}" evaluation
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Mar 7, 2022
1 parent 0817df6 commit a3cfd0d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/edit.sh
Expand Up @@ -630,6 +630,7 @@ function ble-edit/prompt/.instantiate {
local ret
ble-edit/prompt/.escape "$processed"; local escaped=$ret
local expanded=${trace_hash0#*:} # Note: これは次行が失敗した時の既定値
ble-edit/exec/.setexit "$_ble_edit_exec_lastarg"
builtin eval "expanded=\"$escaped\""

# 3. 端末への出力を構成する
Expand Down

0 comments on commit a3cfd0d

Please sign in to comment.