bash: Really pass through the return code

We want expect to return the return code of "make test" (stored in
$value), but $value is expanded too early to nothing by Bash.  Quote EOF
so Bash won't expand $xxx.
This commit is contained in:
Xi Ruoyao 2024-02-06 03:44:38 +08:00
parent 1fde756b12
commit 4816dc69f5
No known key found for this signature in database
GPG Key ID: ACAAD20E19E710E3

View File

@ -83,7 +83,7 @@
<application>Expect</application> and run the tests as the <systemitem
class="username">tester</systemitem> user:</para>
<screen><userinput remap="test">su -s /usr/bin/expect tester &lt;&lt; EOF
<screen><userinput remap="test">su -s /usr/bin/expect tester &lt;&lt; "EOF"
set timeout -1
spawn make tests
expect eof