#!/bin/bashread -d $'\n' a b c < <(printf '1\n2\n3')echo $?printf '[%s]\n' "$a" "$b" "$c"
Standard input is empty
0 [1] [] []
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!