Question très similaire à Comment ajouter plusieurs lignes à un fichier avec bash mais je veux démarrer le fichier avec --, et aussi ajouter au fichier, si possible. printf "--no-color\n--format-doc\n--no-profile\n" >> ~/.rspec-test Le problème est de démarrer le fichier avec "-" me donne un: -bash: printf: --: invalid option printf: …
man su dit: You can use the -- argument to separate su options from the arguments supplied to the shell. man bash dit: -- A -- signals the end of options and disables further option processing. Any arguments after the -- are treated as filenames and arguments. An argument of …
We use cookies and other tracking technologies to improve your browsing experience on our website,
to show you personalized content and targeted ads, to analyze our website traffic,
and to understand where our visitors are coming from.
By continuing, you consent to our use of cookies and other tracking technologies and
affirm you're at least 16 years old or have consent from a parent or guardian.