a="Dev-0-1"echo $atest ${a:0:1} = D || echo 'test fail 1'###################a="SOMETHING ELSE" echo $atest ${a:0:1} = D || echo 'test fail 2'
Standard input is empty
Dev-0-1 SOMETHING ELSE test fail 2
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!