mailing list of musl libc
 help / color / mirror / code / Atom feed
From: u-igbb@aetey.se
To: musl@lists.openwall.com
Subject: Re: --library-path and friends (was: [musl] musl 1.1.0 released)
Date: Sat, 19 Apr 2014 14:14:26 +0200	[thread overview]
Message-ID: <20140419121426.GP18458@example.net> (raw)
In-Reply-To: <20140418204621.GM26358@brightrain.aerifal.cx>

On Fri, Apr 18, 2014 at 04:46:22PM -0400, Rich Felker wrote:
> > Frankly I do not see any need for the '=' syntax extention, it probably
> > costs some extra byte[s] but more importantly once introduced you will
> > have to keep the extra possibility. I do not think (didn't check for a
> 
> I'm not sure whether glibc's dynamic linker supports it, but the
> processing of the form with --option=arg is part of the "standard"
> getopt_long processing for long options, and I felt like it should be

As you correctly say getopt_long is a "standard" not a standard.

(AFAIK none of the other dynamic linkers support it, nor would the
getopt_long syntax convention give any real advantage in the expected
usage pattern)

> supported here too for the sake of consistency if we're accepting long
> options that look like getopt_long options. It's just one extra
> (trivial) line of source anyway.

Given that this costs a line which you will not be able to ever remove,
I'd wait with adding this at least until somebody asks for it.

I do not either like the extra resulting bytes inside the loader which
I have to deliver everywhere the software will be run. These bytes will
take the disk space, the network capacity and the RAM at many places,
with the sole reason being to allow an additional (and unused) way to
spell the same thing.

This feature would also force everyone possibly reinterpreting
the loader command line in scripts to add the code for parsing '='
just to cope with somebody else possibly having been used the extra
"freedom of expression" (without having said anything different :)

That's why in my eyes '=' looks like an unnecessary and actually harmful
"feature pollution" (even though the harm is small, it is there).

Of course I am extremely happy with the _functionality_ being there now.
The syntax details are just details :) and the choice is yours.

Thanks Rich!

Rune



      reply	other threads:[~2014-04-19 12:14 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-16  8:41 musl 1.1.0 released Rich Felker
2014-04-16 10:47 ` u-igbb
2014-04-16 15:03   ` Rich Felker
2014-04-16 16:53   ` Rich Felker
2014-04-17  8:15     ` --library-path and friends (was: [musl] musl 1.1.0 released) u-igbb
2014-04-18 20:46       ` Rich Felker
2014-04-19 12:14         ` u-igbb [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140419121426.GP18458@example.net \
    --to=u-igbb@aetey.se \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).