AOSC-Archive / autobuild3

AOSC OS package maintenance toolkit (version 3)
https://aosc.io
GNU General Public License v2.0
24 stars 17 forks source link

Consider using (( )) instead of bool. #22

Closed Artoria2e5 closed 8 years ago

Artoria2e5 commented 9 years ago

Additional Header:

readonly true=1 false=0

Usage:

# if bool $p
if ((p))

Doing this would limit the safely-accepted ranges from ([01]|t(rue|)|f(alse|)|y(es|)|n(o|)) to (\d*|true|false). This may help clearify some definitions by reducing the possibilities allowed.

The old bool can be kept for reading user input.

Artoria2e5 commented 8 years ago

This is basically done.

Icenowy commented 8 years ago

鲁棒性不足

Icenowy commented 8 years ago

鲁棒性不足

Artoria2e5 commented 8 years ago

Your implementation suck more.