Tíquete #46148

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

: 2022-12-01 03:01 Última Atualização: 2022-12-04 00:36

Relator:
Dono:
Estado:
Aberto [Owner assigned]
Componente:
Marcos:
(Nenhum)
Prioridade:
1 - Lowest
Gravidade:
1 - Lowest
Resolução:
Nenhum
Arquivo:
Nenhum
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
  • Dono Update from (Nenhum) to magicant
  • Componente Update from (Nenhum) to document
Comentário

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

Editar

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