<div dir="ltr">Here's a fun one:<br><br>    1> io:format("~3.3w",[3.14]).<br>    ***ok<br>    2> io:format("~2.3w",[3.14]).<br>    <br>    BREAK: (a)bort (c)ontinue (p)roc info (i)nfo (l)oaded<br>
           (v)ersion (k)ill (D)b-tables (d)istribution<br>    ^C<br><div><br></div><div>And this would be bad to run on a production machine:<br><br>    1> error_logger:format("~3.3w",[3.14]).<br>    ok<br>    =ERROR REPORT==== 20-May-2014::14:38:25 ===<br>
    ***<br>    2> error_logger:format("~2.3w",[3.14]).<br>    ok<br>    3> <br><br></div><div>(since the formatting is performed by the receiving io server process, the shell remains useful in this case, but the logger becomes locked in an infinite loop consuming all available memory).<br>
<br>        /Richard<br><br></div></div>