Ticket #46148

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

Open Date: 2022-12-01 03:01 Last Update: 2022-12-04 00:36

Reporter:
Owner:
Status:
Open [Owner assigned]
Component:
MileStone:
(None)
Priority:
1 - Lowest
Severity:
1 - Lowest
Resolution:
None
File:
None
Vote
Score: 0
No votes
0.0% (0/0)
0.0% (0/0)

Details

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
  • Owner Update from (None) to magicant
  • Component Update from (None) to document
Comment

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

Edit

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