bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

eval '`' reports error but $? is still 0


From: Clark Wang
Subject: eval '`' reports error but $? is still 0
Date: Wed, 10 May 2023 21:05:20 +0800

See the following example (with 5.2.15):

bash-5.2$ PS1='$? >> '
0 >> eval '`'
bash: unexpected EOF while looking for matching ``'
0 >>        <-- press ENTER
2 >>        <-- now $? is 2


It looks like the failed eval '`' is still waiting for some input?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]