Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] baselayout r3196 - trunk/etc
Date: Sun, 03 Jul 2011 06:47:16
Message-Id: 20110703064706.6D4C02004B@flycatcher.gentoo.org
1 Author: vapier
2 Date: 2011-07-03 06:47:05 +0000 (Sun, 03 Jul 2011)
3 New Revision: 3196
4
5 Modified:
6 trunk/etc/profile
7 Log:
8 profile: drop unnecessary `type` checking
9
10 Modified: trunk/etc/profile
11 ===================================================================
12 --- trunk/etc/profile 2011-06-27 03:34:09 UTC (rev 3195)
13 +++ trunk/etc/profile 2011-07-03 06:47:05 UTC (rev 3196)
14 @@ -54,7 +54,7 @@
15 # Setup a bland default prompt. Since this prompt should be useable
16 # on color and non-color terminals, as well as shells that don't
17 # understand sequences such as \h, don't put anything special in it.
18 - PS1="${USER:-$(type whoami >/dev/null && whoami)}@$(type uname >/dev/null && uname -n) \$ "
19 + PS1="${USER:-$(whoami 2>/dev/null)}@$(uname -n 2>/dev/null) \$ "
20 fi
21
22 for sh in /etc/profile.d/*.sh ; do