待辦事項 #46148

Document long options's behaviour (such as --rcfile) when there are no =

啟用日期: 2022-12-01 03:01 最後更新: 2022-12-04 00:36

回報者:
負責人:
類型:
狀態:
開啟 [Owner assigned]
元件:
里程碑:
(無)
優先權:
1 - 最低
嚴重程度:
1 - 最低
處理結果:
檔案:
Vote
Score: 0
No votes
0.0% (0/0)
0.0% (0/0)

細節

It seems to me that although not documented, yash --rcfile foo.sh seems to work. The form without the equal sign is very handy when one starts the shell in C (for example, execl("/bin/yash", "yash", "--rcfile", somefile)). It would be nice if this behaviour is documented or shown in the --help page.

Ticket History (2/2 Histories)

2022-12-01 03:01 Updated by: hckiang
  • New Ticket "Document long options's behaviour (such as --rcfile) when there are no =" created
2022-12-04 00:36 Updated by: magicant
  • 負責人 Update from (無) to magicant
  • 元件 Update from (無) to document
評語

It's documented in: https://yash.osdn.jp/doc/builtin.html#argsyntax

The rule for the equal sign is so universal that it may be too verbose to mention the rule in every description of a long option...

Attachment File List

No attachments

編輯

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » 登入