kernel: Add getdata to interactive shell tests
kernel: Add getdata to interactive shell tests

Refactor to allow getting data that does not end with
a newline from the output so that shell_history tests
work better.

dumbbell/otp,bjorng/otp,isvilen/otp,vinoski/otp,rlipscombe/otp,jj1bdx/otp,ferd/otp,emacsmirror/erlang,uabboli/otp,jj1bdx/otp,vinoski/otp,g-andrade/otp,isvilen/otp,mikpe/otp,dgud/otp,g-andrade/otp,g-andrade/otp,dgud/otp,uabboli/otp,bjorng/otp,bjorng/otp,uabboli/otp,mikpe/otp,vinoski/otp,vinoski/otp,erlang/otp,rlipscombe/otp,uabboli/otp,vinoski/otp,dgud/otp,emacsmirror/erlang,bjorng/otp,emacsmirror/erlang,dumbbell/otp,mikpe/otp,vinoski/otp,isvilen/otp,erlang/otp,vinoski/otp,g-andrade/otp,dumbbell/otp,potatosalad/otp,vinoski/otp,ferd/otp,emacsmirror/erlang,jj1bdx/otp,erlang/otp,rlipscombe/otp,emacsmirror/erlang,getong/otp,ferd/otp,potatosalad/otp,dgud/otp,dgud/otp,rlipscombe/otp,isvilen/otp,getong/otp,potatosalad/otp,g-andrade/otp,bjorng/otp,isvilen/otp,dgud/otp,jj1bdx/otp,uabboli/otp,dumbbell/otp,vinoski/otp,getong/otp,mikpe/otp,dumbbell/otp,uabboli/otp,bjorng/otp,isvilen/otp,emacsmirror/erlang,jj1bdx/otp,getong/otp,g-andrade/otp,erlang/otp,dumbbell/otp,rlipscombe/otp,mikpe/otp,jj1bdx/otp,ferd/otp,ferd/otp,dumbbell/otp,g-andrade/otp,potatosalad/otp,rlipscombe/otp,ferd/otp,erlang/otp,bjorng/otp,jj1bdx/otp,g-andrade/otp,mikpe/otp,emacsmirror/erlang,isvilen/otp,emacsmirror/erlang,getong/otp,g-andrade/otp,mikpe/otp,dgud/otp,mikpe/otp,rlipscombe/otp,jj1bdx/otp,uabboli/otp,mikpe/otp,ferd/otp,potatosalad/otp,dumbbell/otp,getong/otp,getong/otp,jj1bdx/otp,erlang/otp,vinoski/otp,erlang/otp,getong/otp,rlipscombe/otp,getong/otp,ferd/otp,potatosalad/otp,potatosalad/otp,isvilen/otp,erlang/otp,rlipscombe/otp,dumbbell/otp,rlipscombe/otp,uabboli/otp,emacsmirror/erlang,dgud/otp,bjorng/otp,erlang/otp,isvilen/otp,potatosalad/otp,potatosalad/otp,dumbbell/otp,bjorng/otp,isvilen/otp,dgud/otp,jj1bdx/otp,bjorng/otp,ferd/otp,dgud/otp,getong/otp,emacsmirror/erlang,g-andrade/otp,uabboli/otp,mikpe/otp,erlang/otp,potatosalad/otp