История изменений
Исправление kir2yar, (текущая версия) :
# /bin/sh --version
/bin/sh: 0: Illegal option --
# stat /bin/sh
File: ‘/bin/sh’ -> ‘dash’
# man sh
-e errexit If not interactive, exit immediately if any untested command fails. The exit status of a command is considered to be explic‐
itly tested if the command is used to control an if, elif, while, or until; or if the command is the left hand operand of an
“&&” or “||” operator.
Дефолт убунты 1404LTS. Думаю в дебиане так-же. А вот в центоси прикольней:
# stat /bin/sh
File: «/bin/sh» -> «bash»
# cat /etc/issue
CentOS release 6.3 (Final)
# cat /etc/rc.local
#!/bin/sh
Короче фиг угадаешь.
Исходная версия kir2yar, :
# /bin/sh --version
/bin/sh: 0: Illegal option --
# stat /bin/sh
File: ‘/bin/sh’ -> ‘dash’
# man sh
-e errexit If not interactive, exit immediately if any untested command fails. The exit status of a command is considered to be explic‐
itly tested if the command is used to control an if, elif, while, or until; or if the command is the left hand operand of an
“&&” or “||” operator.
Дефолт убунты 1404LTS. Думаю в дебиане так-же. А вот в центоси прикольней:
# stat /bin/sh
File: «/bin/sh» -> «bash»
# cat /etc/issue
CentOS release 6.3 (Final)
# cat /etc/rc.local
#!/bin/sh