Trepan-Debuggers / zshdb

gdb-like "trepan" debugger for zsh
GNU General Public License v3.0
295 stars 23 forks source link

eval? command does not evaluate correctly the expression #31

Closed roc007 closed 3 years ago

roc007 commented 3 years ago
zshdb<0>l
  1:    #!/bin/zsh -f
  2:
  3: => if test -z "$a" ; then
  4:        echo "a is not set"
  5:    else
  6:        echo "a is set to $a"
  7:    fi
zshdb<0> ev?
eval: test -z "$a"
$? is 0
zshdb<0> ev a=22
$? is 0
zshdb<0> ev?
eval: test -z "$a"
$? is 0                # should be 1
zshdb<0>
rocky commented 3 years ago

@roc007 Are you up for putting in a PR for this?

roc007 commented 3 years ago

PR done

rocky commented 3 years ago

Thanks!