Ticket #46148

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

Eröffnet am: 2022-12-01 03:01 Letztes Update: 2022-12-04 00:36

Auswertung:
Verantwortlicher:
Status:
Offen [Owner assigned]
Komponente:
Meilenstein:
(Keine)
Priorität:
1 - Unterste
Schweregrad:
1 - Unterste
Lösung:
Keine
Datei:
Keine
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-Verlauf (2/2 Historien)

2022-12-01 03:01 Aktualisiert von: hckiang
  • New Ticket "Document long options's behaviour (such as --rcfile) when there are no =" created
2022-12-04 00:36 Aktualisiert von: magicant
  • Verantwortlicher Update from (Keine) to magicant
  • Komponente Update from (Keine) to document
Kommentar

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...

Dateianhangliste

Keine Anhänge

Bearbeiten

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