LINUX.ORG.RU

История изменений

Исправление KennyMinigun, (текущая версия) :

то вот к недостаткам относится несовместимость с sh

Может быть это и относится к старым версиям Bourne Shell, но сейчас POSIX говорит:

Command substitution allows the output of a command to be substituted in place of the command name itself. Command substitution shall occur when the command is enclosed as follows:

$(command)

or (backquoted version):

`command`

Полностью здесь: http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_...

Исходная версия KennyMinigun, :

то вот к недостаткам относится несовместимость с sh

Может быть это является истинной для старых версий Bourne Shell, но сейчас POSIX говорит:

Command substitution allows the output of a command to be substituted in place of the command name itself. Command substitution shall occur when the command is enclosed as follows:

$(command)

or (backquoted version):

`command`

Полностью здесь: http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_...