Tuesday 30 May 2006 07:51 skrev Iain Buchanan: > Ah, I was looking in /etc/init.d wondering why I couldn't find it :) I > have bad RAM in my head. I guess sh scripts can be run by sh and bash, > and probably other --sh variants. Not that that helps with this topic, > I was just thinking aloud :)
$ ls -l /bin/sh lrwxrwxrwx 1 root root 4 15 maj 17:46 /bin/sh -> bash From 'man bash': "Bash is an sh-compatible command language interpreter that executes commands read from the standard input or from a file. Bash also incorporates useful features from the Korn and C shells (ksh and csh)." "--norc Do not read and execute the personal initialization file ~/.bashrc if the shell is interactive. This option is on by default if the shell is invoked as sh" "If bash is invoked with the name sh, it tries to mimic the startup behavior of historical versions of sh as closely as possible, while conforming to the POSIX standard as well." -- Bo Andresen
pgpw92UZF0yXN.pgp
Description: PGP signature