fork(1) download
  1. echo "=== bash input"
  2. type -t type
  3. echo "=== sh command line"
  4. /bin/sh -c 'type -t type'
  5. echo "=== bash command line"
  6. /bin/bash -c 'type -t type'
  7. echo "=== sh and bash details"
  8. ls -l /bin/sh /bin/bash
Success #stdin #stdout 0s 5088KB
stdin
Standard input is empty
stdout
=== 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