Next: , Previous: fail, Up: Writing new test cases


10.2.6 echo_nonl

The echo_nonl function outputs its argument, without a following newline. Escape codes as for echo(1) are understood. Depending on the actual flavour of system that the test suite is running on, this might internally use echo -n or echo -e .....\c.

Please do not use either the -n or -e options for echo(1) directly in test scripts, because they don't work in the same way on all machines. The echo_nonl function is provided for this reason; therefore, please use it. Please note also that while the printf(1) command may seem superior, it absolutely cannot be used because not all systems provide it.

Typical usage of echo_nonl might be:-

     echo_nonl Please wait while I finish what I am doing...
     # ...
     echo done