Deutsch English Français Italiano |
<vbajqa$3a4$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!uucp.uio.no!fnord.no!news.eyrie.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Lawrence D'Oliveiro <ldo@nz.invalid> Newsgroups: comp.unix.programmer Subject: Re: Always use "--" (Was: Long filenames in DOS/Windows and Unix/Linux) Date: Wed, 4 Sep 2024 21:35:07 -0000 (UTC) Organization: A noiseless patient Spider Lines: 12 Message-ID: <vbajqa$3a4$1@dont-email.me> References: <9e7a4bd1-bfbb-4df7-af1a-27ca9625e50bn@googlegroups.com> <yga34mfoily.fsf@akutech.de> <87ttevzoj3.fsf@nosuchdomain.example.com> <vb9k2l$3r705$1@dont-email.me> <vb9ls7$1igeo$1@news.xmission.com> <vb9mls$3rk17$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Wed, 04 Sep 2024 23:35:07 +0200 (CEST) Injection-Info: dont-email.me; posting-host="176f5fbfb5d1157be6fd816dae78eee8"; logging-data="3396"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/YAUgnrhcl4x/q20eZ497B" User-Agent: Pan/0.160 (Toresk; ) Cancel-Lock: sha1:IUK2SRze0HbtWrB8d1hvcEKwKN0= Bytes: 1805 On Wed, 4 Sep 2024 13:17:48 -0000 (UTC), Lew Pitcher wrote: > The "--" option is just that, an option coded into the argument parser > of the program being invoked. Many programs /do not/ recognize "--" as > an "end of flags" argument, so the effectiveness of "--" is unreliable. All the good ones do. This is why getopt(3) with POSIXLY_CORRECT stops looking for options as soon as a nonoption argument is encountered. Remember also that arguments need not necessarily be file names, so prefixing them all with “./” willy-nilly may not produce the right result anyway.