all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andy Wingo <wingo@igalia.com>
To: guix-devel@gnu.org
Subject: Why does glibc provide bash?
Date: Mon, 10 Aug 2015 17:05:14 +0200	[thread overview]
Message-ID: <87vbcnb2vp.fsf@igalia.com> (raw)

Hi,

Let's start bash with no RC file in a null environment:

    $ env -i ~/.guix-profile/bin/bash --norc

Check to make sure the env is empty:

    bash-4.3$ env
    PWD=/home/wingo
    SHLVL=1
    _=/usr/bin/env

Now look at this little sample file:

    bash-4.3$ .guix-profile/bin/cat /tmp/foo.bash
    _foo_complete ()
    {
        false
    }

    complete -F _foo_complete foo

OK now we run bash on that file:

    bash-4.3$ .guix-profile/bin/bash --norc /tmp/foo.bash
    /tmp/foo.bash: line 6: complete: command not found

What could be going on?  Well here's a lollerskates thing, back in the
main environment:

    $ ls -l `which bash`
    lrwxrwxrwx 11 root guixbuild 63 Jan  1  1970 /home/wingo/.guix-profile/bin/bash -> /gnu/store/5995q4p9ayvicd8qxjmn8zrwis4y7a8c-glibc-2.21/bin/bash

It's coming from glibc!!!  Zomg.  Why is this?  From what I can tell
it's not in the propagated inputs of glibc, so this shouldn't be
happening.

Andy

             reply	other threads:[~2015-08-10 15:05 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-10 15:05 Andy Wingo [this message]
2015-08-11  4:23 ` Why does glibc provide bash? Mark H Weaver
2015-08-11  8:21   ` Andy Wingo
2015-08-18 16:44     ` Ludovic Courtès
2015-08-19 22:33       ` Ludovic Courtès
2015-08-29 17:56         ` Ludovic Courtès
2015-08-30 19:46         ` libc upgrade vs. incompatible locales Ludovic Courtès
2015-08-31  8:39           ` Andy Wingo
2015-08-31 11:49             ` Ludovic Courtès
2015-08-31 13:09               ` Andy Wingo
2015-09-02 12:29                 ` Ludovic Courtès

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=87vbcnb2vp.fsf@igalia.com \
    --to=wingo@igalia.com \
    --cc=guix-devel@gnu.org \
    /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 external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.