作者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/m.aspx?n=bbs/Eng-Class/M.1631454172.A.B32.html
※ 編輯: LongboardDC (111.242.31.44 臺灣), 09/12/2021 21:57:29