mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-19 03:39:20 +01:00
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:
parent
1fde756b12
commit
4816dc69f5
@ -83,7 +83,7 @@
|
|||||||
<application>Expect</application> and run the tests as the <systemitem
|
<application>Expect</application> and run the tests as the <systemitem
|
||||||
class="username">tester</systemitem> user:</para>
|
class="username">tester</systemitem> user:</para>
|
||||||
|
|
||||||
<screen><userinput remap="test">su -s /usr/bin/expect tester << EOF
|
<screen><userinput remap="test">su -s /usr/bin/expect tester << "EOF"
|
||||||
set timeout -1
|
set timeout -1
|
||||||
spawn make tests
|
spawn make tests
|
||||||
expect eof
|
expect eof
|
||||||
|
Loading…
Reference in New Issue
Block a user