<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body><figure class="quote"><figcaption><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="1" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[1]</anchor-end> <cite>echo</cite>
(<time>2024-06-23T03:02:51.000Z</time>)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://pubs.opengroup.org/onlinepubs/9699919799/utilities/echo.html#tag_20_37_04">https://pubs.opengroup.org/onlinepubs/9699919799/utilities/echo.html#tag_20_37_04</anchor-external></figcaption><blockquote><p>The <i>echo</i> utility shall not recognize the &quot;--&quot; argument in the manner specified by Guideline 10 of <i>XBD Utility Syntax Guidelines</i>; &quot;--&quot; shall be recognized as a string operand.</p></blockquote></figure><figure class="quote"><figcaption><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="2" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[2]</anchor-end> <cite xml:lang="en">zsh: 17 Shell Builtin Commands</cite>
(<time>2023-05-08T23:42:16.000Z</time>, <time>2024-06-23T03:10:18.544Z</time>)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://zsh.sourceforge.io/Doc/Release/Shell-Builtin-Commands.html">https://zsh.sourceforge.io/Doc/Release/Shell-Builtin-Commands.html</anchor-external></figcaption><blockquote><p>All builtin commands other than ‘<code>echo</code>’ and precommand modifiers, even those that have no options, can be given the argument ‘<code>--</code>’ to terminate option processing. This indicates that the following words are non-option arguments, but is otherwise ignored. This is useful in cases where arguments to the command may begin with ‘<code>-</code>’. For historical reasons, most builtin commands (including ‘<code>echo</code>’) also recognize a single ‘<code>-</code>’ in a separate word for this purpose; note that this is less standard and use of ‘<code>--</code>’ is recommended.</p></blockquote></figure><ul><li><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="3" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[3]</anchor-end> <cite xml:lang="en">–end-of-options | Andrew Nesbitt</cite>, <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Andrew Nesbitt</anchor>, <time>2026-07-27T05:47:09.000Z</time>, <time>2026-07-27T06:51:50.594Z</time> <anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://nesbitt.io/2026/07/21/end-of-options.html">https://nesbitt.io/2026/07/21/end-of-options.html</anchor-external><ul><li><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="4" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[4]</anchor-end> 
<cite xml:lang="ja">Xユーザーのiwashi / Yoshimasa Iwaseさん: 「gitの--end-of-optionsは知らなかったな。 ・多くのUnixツールでは「--」がオプション解析の終了を意味する ・しかしgitでは「--」をリビジョンとパスの分離に使ってしまっている ・そのため、ダッシュから始まる変数を渡すとgitがオプションと誤認してしまう ・これを防ぐため、git」 / X</cite>, <time>午後9:00 · 2026年7月26日<attrvalue xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:10:">2026-07-26T12:00:00.000Z</attrvalue></time>, <time>2026-07-27T06:04:48.000Z</time> <anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://x.com/iwashi86/status/2081348809473261831">https://x.com/iwashi86/status/2081348809473261831</anchor-external></li></ul></li></ul></body></html>