LINUX.ORG.RU

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

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

На ksh88 вот есть man у Oracle

https://docs.oracle.com/cd/E36784_01/html/E36870/ksh88-1.html

И тут тоже backquote и ничего про single quotation mark. И также про word (как отключить интерпретацию внутренностей Heredoc):

<< [–]word

    The shell input is read up to a line that is the same as word, or to an EOF. No parameter substitution, command substitution, or file name generation is performed on word. The resulting document, called a here-document, becomes the standard input. If any character of word is quoted, no interpretation is placed upon the characters of the document. Otherwise, parameter and command substitution occur, \ NEWLINE is ignored, and \ must be used to quote the characters \ , $, `, and the first character of word. If − is appended to <<, then all leading tabs are stripped from word and from the document.

Причем зависит баг от контекста. И там и там command substitution. Но для формы `...` работает нормально, а для $(...) нет. https://www.ibm.com/docs/en/aix/7.2?topic=shell-command-substitution-in-korn-...

Исправление Zubok, :

На ksh88 вот есть man у Oracle

https://docs.oracle.com/cd/E36784_01/html/E36870/ksh88-1.html

И тут тоже backquote и ничего про single quotation mark. И также про word (как отключить интерпретацию внутренностей Heredoc):

<< [–]word

    The shell input is read up to a line that is the same as word, or to an EOF. No parameter substitution, command substitution, or file name generation is performed on word. The resulting document, called a here-document, becomes the standard input. If any character of word is quoted, no interpretation is placed upon the characters of the document. Otherwise, parameter and command substitution occur, \ NEWLINE is ignored, and \ must be used to quote the characters \ , $, `, and the first character of word. If − is appended to <<, then all leading tabs are stripped from word and from the document.

Причем зависит баг от контекста. И там и там command substitution. Но для формы `...` работает нормально, а для $(...) нет.

Исправление Zubok, :

На ksh88 вот есть man у Oracle

https://docs.oracle.com/cd/E36784_01/html/E36870/ksh88-1.html

И тут тоже backquote и ничего про single quotation mark. И также про word (как отключить интерпретацию внутренностей Heredoc):

<< [–]word

    The shell input is read up to a line that is the same as word, or to an EOF. No parameter substitution, command substitution, or file name generation is performed on word. The resulting document, called a here-document, becomes the standard input. If any character of word is quoted, no interpretation is placed upon the characters of the document. Otherwise, parameter and command substitution occur, \ NEWLINE is ignored, and \ must be used to quote the characters \ , $, `, and the first character of word. If − is appended to <<, then all leading tabs are stripped from word and from the document.

Причем зависит баг отконтекста. И там и там command substitution. Но для формы `...` работает нормально, а для $(...) нет.

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

На ksh88 вот есть man у Oracle

https://docs.oracle.com/cd/E36784_01/html/E36870/ksh88-1.html

И тут тоже backquote и ничего про single quotation mark. И также про word (как отключить интерпретацию внутренностей Heredoc):

<< [–]word

    The shell input is read up to a line that is the same as word, or to an EOF. No parameter substitution, command substitution, or file name generation is performed on word. The resulting document, called a here-document, becomes the standard input. If any character of word is quoted, no interpretation is placed upon the characters of the document. Otherwise, parameter and command substitution occur, \ NEWLINE is ignored, and \ must be used to quote the characters \ , $, `, and the first character of word. If − is appended to <<, then all leading tabs are stripped from word and from the document.