[devel] [spec-lynch] vim.spec

Sergey Vlasov vsu at altlinux.ru
Sun Oct 11 16:36:30 UTC 2009


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 "${}".
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.altlinux.org/pipermail/devel/attachments/20091011/a7ea463c/attachment.bin>


More information about the Devel mailing list