Use a opção w (para "wide").
De man ps (pesquisa por wide ):
wWide output. Use this option twice for unlimited width.
por exemplo. ps ww -u cas :
$ ps ww -U cas | grep bash
1350 pts/0 Ss 0:00 -bash
18345 pts/34 S 0:00 /bin/bash /home/cas/bin/myscript.sh
21293 pts/34 Ss+ 0:00 bash
O -bash é um shell de login.
O bash simples é um shell interativo que não é de login - o tty pts/34 é o mesmo, então você pode dizer que é o shell pai (ou avô distante) do myscript.sh bash shell. / p>
Using /usr/env/bin bash prevents you from determining which script is running. Instead you should specify exactly were the bash executable is for the machine you're running on.