Skip to contentSkip to conversation

test command (in-)compatibility

DISCUSSION Andrei Borzenkov 2 participants 2 messages Dec 8, 2015 – Jan 22, 2016

lore
Share & tools
lore
#0 lore raw

test' in GRUB implicitly assumes and' operation between consecutive terms and does not enforce proper syntax like UNIX (bash) `test' does. Both

test x y z
test x = y z = w

result in error in Linux and are silently accepted by GRUB with interpretation

test x -a y -a z
test ( x = y ) -a ( z = w )

I do not have any strong opinion about it; but simply documenting it needs the least efforts :)

#1 lore raw
Quoted 6 lines · Andrei Borzenkov

test' in GRUB implicitly assumes and' operation between consecutive terms and does not enforce proper syntax like UNIX (bash) `test' does. Both

test x y z
test x = y z = w

Quoted 9 lines

result in error in Linux and are silently accepted by GRUB with interpretation

test x -a y -a z
test ( x = y ) -a ( z = w )

I do not have any strong opinion about it; but simply documenting it needs the least efforts :)

Documented

Quoted 5 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel