Sujet : Always use "--" (Was: Long filenames in DOS/Windows and Unix/Linux)
De : gazelle (at) *nospam* shell.xmission.com (Kenny McCormack)
Groupes : comp.unix.programmerDate : 04. Sep 2024, 14:04:07
Autres entêtes
Organisation : The official candy of the new Millennium
Message-ID : <vb9ls7$1igeo$1@news.xmission.com>
References : 1 2 3 4
User-Agent : trn 4.0-test77 (Sep 1, 2010)
In article <
vb9k2l$3r705$1@dont-email.me>,
Nuno Silva <
nunojsilva@invalid.invalid> wrote:
...
D'oh!
>
(Along with these quotes, I'd add ./ before $file.)
Or, more simply, just put -- after the -p.
This is an often overlooked aspect of shell programing. You should always
use "--". The "shellcheck" program will tell you this, if you let it.
-- "Women should not be enlightened or educated in any way. They should besegregated because they are the cause of unholy erections in holy men. -- Saint Augustine (354-430) --