Gentoo Archives: gentoo-commits

From: "Ulrich Mueller (ulm)" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] eselect r488 - in trunk: . libs
Date: Wed, 22 Apr 2009 06:23:40
Message-Id: E1LwVru-0000Jq-Oy@stork.gentoo.org
1 Author: ulm
2 Date: 2009-04-22 06:23:38 +0000 (Wed, 22 Apr 2009)
3 New Revision: 488
4
5 Modified:
6 trunk/ChangeLog
7 trunk/libs/core.bash.in
8 Log:
9 Call "shift" twice instead of "shift 2" since there may be only one parameter.
10
11 Modified: trunk/ChangeLog
12 ===================================================================
13 --- trunk/ChangeLog 2009-04-21 22:06:34 UTC (rev 487)
14 +++ trunk/ChangeLog 2009-04-22 06:23:38 UTC (rev 488)
15 @@ -1,5 +1,8 @@
16 2009-04-21 Ulrich Mueller <ulm@g.o>
17
18 + * libs/core.bash.in (do_action): Call "shift" twice instead of
19 + "shift 2" since there may be only one parameter.
20 +
21 * libs/path-manipulation.bash.in (basename, dirname)
22 (canonicalise): Quote arguments to make functions whitespace safe.
23
24
25 Modified: trunk/libs/core.bash.in
26 ===================================================================
27 --- trunk/libs/core.bash.in 2009-04-21 22:06:34 UTC (rev 487)
28 +++ trunk/libs/core.bash.in 2009-04-22 06:23:38 UTC (rev 488)
29 @@ -68,7 +68,7 @@
30 do_action() {
31 local action="${1##--}" modfile="" subaction="${2##--}"
32 [[ -z ${action} ]] && die "Usage: do_action <action> <args>"
33 - shift 2
34 + shift; shift
35
36 ESELECT_MODULE_NAME="${action}"
37 ESELECT_COMMAND="${ESELECT_PROGRAM_NAME} ${ESELECT_MODULE_NAME}"