Gentoo Archives: gentoo-dev

From: Ulrich Mueller <ulm@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [patch] golang-vcs-snapshot.eclass: add vendoring of external dependencies
Date: Fri, 10 Mar 2017 07:38:45
Message-Id: 22722.22497.534790.564575@a1i15.kph.uni-mainz.de
In Reply to: Re: [gentoo-dev] [patch] golang-vcs-snapshot.eclass: add vendoring of external dependencies by "William L. Thomson Jr."
1 >>>>> On Thu, 09 Mar 2017, William L Thomson wrote:
2
3 > Along the lines of failures. What if a system has rm aliased to
4 > prompt before removal? In that case rm -r would fail, but rm -fr
5 > would not. That would cause failures for the user and not the
6 > developer. Assuming rm does not disable prompt for a non-interactive
7 > shell.
8
9 The very first thing ebuild.sh does is this:
10
11 # Prevent aliases from causing portage to act inappropriately.
12 # Make sure it's before everything so we don't mess aliases that follow.
13 unalias -a
14
15 Now of course a user could have aliased both rm and unalias ... :)
16
17 Ulrich