作者LongboardDC (薰儿和她的长板)
看板Eng-Class
标题Re: [请益] 请问补充语句所补充的对象是?
时间Sun Sep 12 21:42:50 2021
※ 引述《zzss2003 (brotherD)》之铭言:
: 原文:
: The most common syntax for here documents, originating in Unix shells, is <<
: followed by a delimiting identifier (often the word EOF or END)[, followed,
: starting on the next line, by the text to be quoted], and then closed by the
: same delimiting identifier on its own line.
: 上列句子,如果拿掉[]里面的句子,则会变成
: The most common syntax for here documents, originating in Unix shells, is <<
: followed by a delimiting identifier (often the word EOF or END), and then
: closed by the same delimiting identifier on its own line.
: 拿掉[]里面的句子的中文翻译:
: 源自於Unix shells 的here documents的最普遍的语法是, << 接着分隔号 (通常是EOF或
: 者是END),然後在同一行再用分隔号表示结束
on its own line是在单独的一行
: 问题:
: 请问,[]中的 followed, starting on the next line, by the text to be quoted,
: 补充的对象分别是什麽?
the delimiting identifier
The delimiting identifier is followed by the text to be quoted
starting on the next line.
原文:
The most common syntax for here documents, originating in Unix shells,
is << followed by a delimiting identifier (often the word EOF or END),
followed, starting on the next line, by the text to be quoted,
and then closed by the same delimiting identifier on its own line.
源自於Unix shells的here documents的最普遍的语法,
是 << 接着一个标识符(通常是EOF或者是END),
标识符的下一行开始接着要引用的文字,
然後再在单独的一行用相同的标识符关闭。
这段话表达的语法:
<< identifier (<< is followed by an identifier.)
text to be quoted (The identifier is followed by the text to be quoted
starting on the next line.)
identifier (closed by the same identifier on its own line.)
例子:
<< EOF ( << 接着一个标识符)
One (标识符的下一行开始接着要引用的文字)
Two
Three
EOF (再在单独的一行用相同的标识符关闭)
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 111.242.31.44 (台湾)
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Eng-Class/M.1631454172.A.B32.html
※ 编辑: LongboardDC (111.242.31.44 台湾), 09/12/2021 21:57:29