ff4ff35918
Red Bear OS is a full fork. All sources must be available from git clone with zero network access. Removed gitignore rules that excluded fetched source trees under recipes/*/source/, local/recipes/kde/*/source/, local/recipes/qt/*/source/, and vendor source trees. Build artifacts (target/, build/, source.tar, *.o, *.so) remain excluded. 127291 files added — kernel, relibc, base, bootloader, pkgar, all KDE/Qt frameworks, mesa, wayland, DRM drivers, and every other recipe source.
35 lines
561 B
Plaintext
35 lines
561 B
Plaintext
# Tests for the eval builtin.
|
|
# This is quite short; eval is widely tested throughout the test suite
|
|
# and its basic behaviour is fairly straightforward.
|
|
|
|
%prep
|
|
|
|
cmd='print $?'
|
|
|
|
%test
|
|
|
|
false
|
|
eval $cmd
|
|
0:eval retains value of $?
|
|
>1
|
|
|
|
# no point getting worked up over what the error message is...
|
|
./command_not_found 2>/dev/null
|
|
eval $cmd
|
|
0:eval after command not found
|
|
>127
|
|
|
|
# trick the test system
|
|
sp=
|
|
false
|
|
eval "
|
|
$sp
|
|
$sp
|
|
$sp
|
|
"
|
|
0:eval with empty command resets the status
|
|
|
|
false
|
|
eval
|
|
0:eval with empty command resets the status
|