echo "=== bash input" type -t type echo "=== sh command line" /bin/sh -c 'type -t type' echo "=== bash command line" /bin/bash -c 'type -t type' echo "=== sh and bash details" ls -l /bin/sh /bin/bash
Standard input is empty
=== bash input builtin === sh command line -t: not found type is a shell builtin === bash command line builtin === sh and bash details -rwxr-xr-x 1 root root 1105840 Jul 21 2015 /bin/bash lrwxrwxrwx 1 root root 4 Jul 21 2015 /bin/sh -> dash