#!/bin/bash# your code goes hereecho ${foo-bar}echo ${foo:-bar}foo="FOO"echo ${foo-bar}echo ${foo:-bar}foo=""echo ${foo-bar}echo ${foo:-bar}
Standard input is empty
bar bar FOO FOO bar
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!