问题
Is there a Bash equivalent to the Python's pass
statement?
回答1:
You can use :
for this.
回答2:
true
is a command that successfully does nothing.
(false
would, in a way, be the opposite: it doesn't do anything, but claims that a failure occurred.)
来源:https://stackoverflow.com/questions/2421586/what-is-the-bash-equivalent-of-pythons-pass-statement