unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Why does glibc provide bash?
@ 2015-08-10 15:05 Andy Wingo
  2015-08-11  4:23 ` Mark H Weaver
  0 siblings, 1 reply; 11+ messages in thread
From: Andy Wingo @ 2015-08-10 15:05 UTC (permalink / raw)
  To: guix-devel

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2015-09-02 12:30 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-10 15:05 Why does glibc provide bash? Andy Wingo
2015-08-11  4:23 ` 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

Code repositories for project(s) associated with this public inbox

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

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 read-only IMAP folder(s) and NNTP newsgroup(s).