views:

124

answers:

2

Is there a bash equivalent to the python pass statement?

Thanks.

+5  A: 

You can use : for this.

Ignacio Vazquez-Abrams
+1, `:` rocks socks.
Carl Norum
+2  A: 

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.)

sth
In other words, it does nothing, and fails at it.
Ignacio Vazquez-Abrams
@Ignacio: I was struggling with the language there: Can "it fails at doing nothing" be interpreted as "it, erroneously, does something"? ...Probably I'm just scared by things like the subtle differences between "undefined" and "unspecified" in C++.
sth
I know, I was just being silly.
Ignacio Vazquez-Abrams