Ticket #46148

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

Date d'ouverture: 2022-12-01 03:01 Dernière mise à jour: 2022-12-04 00:36

Rapporteur:
Propriétaire:
État:
Ouvert [Owner assigned]
Composant:
Jalon:
(Aucun)
Priorité:
1 - le plus bas
Sévérité:
1 - le plus bas
Résolution:
Aucun
Fichier:
Aucun
Vote
Score: 0
No votes
0.0% (0/0)
0.0% (0/0)

Détails

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
  • Propriétaire Update from (Aucun) to magicant
  • Composant Update from (Aucun) to document
Commentaire

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

Modifier

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