Perfectly incidentally, I typed ./ into a sh shell today running ARM linux and it produced "permission denied" as an error, as opposed to "Is a directory" which is the usual error.
ARM Linux in sh:
[root@zynq DEBUG]# ./ -sh: ./: Permission denied [root@zynq DEBUG]# uname -a Linux zynq 3.8.0-xilinx #1 SMP PREEMPT Mon May 19 13:01:00 PDT 2014 armv7l GNU/Linux [root@zynq DEBUG]# echo $SHELL /bin/sh Debian Jessie in bash:
root@hotbox:~# ./ bash: ./: Is a directory root@hotbox:~# uname -a Linux hotbox 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt9-3~deb8u1 (2015-04-24) x86_64 GNU/Linux root@hotbox:~# echo $SHELL /bin/bash I understand that I'm attempting to execute a directory, but I'm curious: Why does sh produces a permission error?
sh? It's usually linked to something else, what?/bin/sh -> busybox. Busybox, apparently. Good catch.