[devel] [spec-lynch] vim.spec

Alexey Rusakov ktirf at altlinux.org
Sun Oct 11 19:36:26 UTC 2009


В Вск, 11/10/2009 в 20:36 +0400, Sergey Vlasov пишет:
> On Sun, Oct 11, 2009 at 07:55:12PM +0400, Alexey I. Froloff wrote:
> > On Sun, Oct 11, 2009 at 06:55:03PM +0400, Sergey Vlasov wrote:
> > > Можно ещё cat <<'EOF' - тогда от sh ничего экранировать не нужно.
> > Уж не башизм ли это?
> 
> Нет:
> http://www.opengroup.org/onlinepubs/000095399/utilities/xcu_chap02.html#tag_02_07_04
> 
> | If any character in word is quoted, the delimiter shall be formed by
> | performing quote removal on word, and the here-document lines shall
> | not be expanded. Otherwise, the delimiter shall be the word itself.
> | 
> | If no characters in word are quoted, all lines of the here-document
> | shall be expanded for parameter expansion, command substitution, and
> | arithmetic expansion. In this case, the backslash in the input
> | behaves as the backslash inside double-quotes (see Double-Quotes).
> | However, the double-quote character ( '"' ) shall not be treated
> | specially within a here-document, except when the double-quote
> | appears within "$()", "``", or "${}".
Какие интересные подробности. Большое спасибо за информацию.

-- 
  Alexey "Ktirf" Rusakov
  GNOME Project
  ALT Linux Team
----------- ��������� ����� -----------
���� ������� �������� �� � ��������� �������...
���     : �����������
���     : application/pgp-signature
������  : 198 ������
��������: ??? ????? ????????? ????????? ???????? ????????
Url     : <http://lists.altlinux.org/pipermail/devel/attachments/20091011/a9e70c07/attachment.bin>


More information about the Devel mailing list