From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1SPHZj-0008B6-46 for garchives@archives.gentoo.org; Tue, 01 May 2012 18:13:23 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 94F5CE09AD; Tue, 1 May 2012 18:13:09 +0000 (UTC) Received: from smtpout.karoo.kcom.com (smtpout.karoo.kcom.com [212.50.160.34]) by pigeon.gentoo.org (Postfix) with ESMTP id 77772E0943 for ; Tue, 1 May 2012 18:11:42 +0000 (UTC) X-IronPort-AV: E=Sophos;i="4.75,512,1330905600"; d="scan'208";a="619923904" Received: from 213-152-39-89.dsl.eclipse.net.uk (HELO compaq.stroller.uk.eu.org) ([213.152.39.89]) by smtpout.karoo.kcom.com with ESMTP; 01 May 2012 19:11:42 +0100 Received: from [192.168.1.100] (unknown [192.168.1.100]) by compaq.stroller.uk.eu.org (Postfix) with ESMTP id AC661AC6CD for ; Tue, 1 May 2012 19:11:07 +0100 (BST) From: Stroller Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: [gentoo-user] Setting default user environments in /etc/profile.d/ Date: Tue, 1 May 2012 19:11:37 +0100 Message-Id: <8C573D55-43CA-4450-9FB0-ED86AD58B7FB@stellar.eclipse.co.uk> To: gentoo-user@lists.gentoo.org Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 (Apple Message framework v1257) X-Mailer: Apple Mail (2.1257) X-Archives-Salt: 0cdf5028-9de1-4a53-9f80-ec3dc4b9c337 X-Archives-Hash: 785e34d5bfc7c6ae10b6ba28014e6d4f So /etc/profile contains the following message: # You should override these in your ~/.bashrc (or equivalent) for = per-user # settings. For system defaults, you can add a new file in = /etc/profile.d/. export EDITOR=3D${EDITOR:-/bin/nano} export PAGER=3D${PAGER:-/usr/bin/less} Therefore I have created a plain text file = /etc/profile.d/essential_defaults $ cat=20 export HISTSIZE=3D900 export HISTFILESIZE=3D900 export HISTCONTROL=3Derasedups # vi-style Bash history editing set -o vi export MANPAGER=3D"/usr/bin/most" $ Yet when I log in, these environment variables are not set.=20 The file is world-readable (mode 644), and I even tried setting the = execute bit (`chmod +xxx`). If I source the file using `. /etc/profile.d/essential_defaults` then = suddenly I get the right pager, but it does not seem to be sourced at = login, as I believe is promised. What am I doing wrong or = misunderstanding, please? Stroller.