Do you want BuboFlash to help you learning these things? Or do you want to add or correct something? Click here to log in or create user.



Question

In linux, in shell scripting, what is the equivalant to python's "pass" statement, i.e. syntax to do nothing, for example:

if <command> ; then
    [...OCULSION...]
else
    echo "<command> was unsuccessful"
fi

Answer

:

^^ the colon syntax


Question

In linux, in shell scripting, what is the equivalant to python's "pass" statement, i.e. syntax to do nothing, for example:

if <command> ; then
    [...OCULSION...]
else
    echo "<command> was unsuccessful"
fi

Answer
?

Question

In linux, in shell scripting, what is the equivalant to python's "pass" statement, i.e. syntax to do nothing, for example:

if <command> ; then
    [...OCULSION...]
else
    echo "<command> was unsuccessful"
fi

Answer

:

^^ the colon syntax

If you want to change selection, open document below and click on "Move attachment"

20. Advanced Shell Scripting
nterpreted. These do not invoke an executable off the file system. Some of these were described in Chapter 7, and a few more are discussed here. For an exhaustive description, consult bash (1). <span>: A single colon by itself does nothing. It is useful for a ``no operation'' line such as: 5 if <command> ; then : else echo "<command> was unsuccessful" fi . filename args ..

Summary

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Details

No repetitions


Discussion

Do you want to join discussion? Click here to log in or create user.