Skip to content

Commit d26975d

Browse files
BUG FIX: 'rsc start --debug' gave 'operand expected (error token is "17565")' on some systems (fix #103)
1 parent d0a8545 commit d26975d

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

NEWS.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
helps troubleshooting obscure errors, e.g. when user runs out of
77
disk space.
88

9+
### Bug Fixes
10+
11+
* `rsc start --debug` could give an `operand expected (error token is
12+
"<pid>")` error on some systems.
13+
914
### Deprecated and defunct
1015

1116
* `--port=random` and `--port=uid` are defunct.

bin/incl/conditions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,5 +123,5 @@ function relay_condition {
123123

124124

125125
function prune_debug {
126-
printf "%s\n" "$@" | sed '/DEBUG:/d' | sed -E 's/\x1b(\[[0-9;]*m|\(B)//g'
126+
printf "%s\n" "$@" | sed '/DEBUG:/d' | sed 's/\x1b\[[0-9;]*m\x0f//g' | sed -E 's/\x1b(\[[0-9;]*m|\(B)//g'
127127
}

bin/rsc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,6 @@ function rs_process_status {
690690
mapfile -t res < <(prune_debug "${res[@]}")
691691
mdebug " - prune_debug(): '$(printf "%q" "${res[*]}")'"
692692
if [[ -n "${res[0]}" ]]; then
693-
mdebug " - pid='$(printf "%q" "${res[0]}")'"
694693
pid="${res[0]}"
695694
else
696695
pid=0

0 commit comments

Comments
 (0)