Bash: infinite sleep (infinite blocking)
sleep infinity does exactly what it suggests and works without cat abuse.
sleep infinity does exactly what it suggests and works without cat abuse.
Cast from string using float(): >>> float(‘NaN’) nan >>> float(‘Inf’) inf >>> -float(‘Inf’) -inf >>> float(‘Inf’) == float(‘Inf’) True >>> float(‘Inf’) == 1 False
In Python, you can do: test = float(“inf”) In Python 3.5, you can do: import math test = math.inf And then: test > 1 test > 10000 test > x Will always be true. Unless of course, as pointed out, x is also infinity or “nan” (“not a number”). Additionally (Python 2.x ONLY), in a … Read more