[BusyBox] sh basic if then else do while

Mark Whitley markw at lineo.com
Fri Aug 18 17:36:10 UTC 2000


On Fri, Aug 18, 2000 at 08:42:22AM -0400, Eric Desjardins wrote:
> Hi,
> 
> Is there an experimental support for basic sh conditionnals?

Eric,

Support for if/elif/else/fi conditional expressions is in the current CVS
source, however it is in a very dodgy state right now and is not fit for
production use. That having been said, if you're feeling bold and adventurous,
grab the source from CVS, open the file 'sh.c' in your favorite editor and
uncomment the following #define's up at the top:


//#define BB_FEATURE_SH_BACKTICKS
//#define BB_FEATURE_SH_IF_EXPRESSIONS
//#define BB_FEATURE_SH_ENVIRONMENT
//#define DEBUG_SHELL


Like I said, it's not ready for production use. Fair warning. If you find
bugs, please report them with test cases. If you want to hack the code and
send a patch, we'd love that too.


Cheers,

Mark Whitley
markw at lineo.com





More information about the busybox mailing list