Is there a Bash equivalent to the Python's pass
statement?
You can use :
for this.
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