Skip to content

Commit

Permalink
promopt: let "stderr" pass through to tty in evaluating "PS0"
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed May 10, 2021
1 parent b9b0de4 commit 24a88ce
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 3 additions & 2 deletions memo/ChangeLog.md
Expand Up @@ -27,8 +27,8 @@
- syntax: support tilde expansions in parameter expansions `#D1513` 0506df2
- decode: support `ble-bind -m KEYMAP --cursor DECSCUSR` (motivated by jmederosalvarado) `#D1514` `#D1515` `#D1516` 79d671d
- edit: support `nsearch` options (motivated by Alyetama, rashil2000, carv-silva) `#D1517` 9125795
- syntax: support the deprecated redirection `>& file` `#D1539` 0000000
- complete: complete file descriptors and heredoc words after redirections `#D1539` 0000000
- syntax: support the deprecated redirection `>& file` `#D1539` b9b0de4
- complete: complete file descriptors and heredoc words after redirections `#D1539` b9b0de4

## Changes

Expand Down Expand Up @@ -58,6 +58,7 @@
- util (`ble/util/type`): fix a bug that aliases are not properly highlighted (reported by 3ximus) `#D1526` 45b30a7
- syntax (`ble/syntax:bash/simple-word/eval`): optimize large array passing (motivated by timjrd) `#D1522` c89aa23
- main: accept non-regular files as `blerc` and add option `--norc` `#D1530` 7244e2f
- promopt: let `stderr` pass through to tty in evaluating `PS0` (reported by tycho-kirchner) `#D1531` 0000000

## Fixes

Expand Down
8 changes: 8 additions & 0 deletions note.txt
Expand Up @@ -4405,6 +4405,14 @@ bash_tips

2021-05-10

* syntax: PS0 から stderr に出力できないという報告を受けた (reported by tycho-kirchner) [#D1541]
https://github.com/akinomyoga/ble.sh/issues/107

一体何をしたいのか謎だがまあ元の bash で動く以上はその動作を利用する設定も
あるだろう。元々その様に実装していたのは set -x の出力を防ぐ為だったが、よ
く見たら PS0 の出力は restore-bash-options の前だったのでこの段階では 2 を
端末に出力しても OK.

* 2021-03-21 gitstatus.plugin.sh の alias builtin で builtin eval 他が破壊されている [#D1540]
https://github.com/akinomyoga/ble.sh/issues/93
https://github.com/romkatv/gitstatus/pull/235
Expand Down
2 changes: 1 addition & 1 deletion src/edit.sh
Expand Up @@ -4998,7 +4998,7 @@ function ble-edit/exec:gexec/.prologue {
_ble_edit_exec_INT=0
ble/util/joblist.clear
ble-edit/exec:gexec/invoke-hook-with-setexit PREEXEC "$_ble_edit_exec_BASH_COMMAND" &>/dev/tty
ble-edit/exec/print-PS0 >&31
ble-edit/exec/print-PS0 >&31 2>&32
ble-edit/exec/restore-BASH_REMATCH
ble/base/restore-bash-options
ble/base/restore-POSIXLY_CORRECT
Expand Down

0 comments on commit 24a88ce

Please sign in to comment.