sh is used mostly for system stuff that is supposed to be light on resources and distros apparently symlink all kinds of stardards compatible shells...
given that you pretty much want to cut the read line to pieces to extract chunks of it, is there any rule to it? is width of $type fixed or variable?...