From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1DqEkc-0006OX-HU for garchives@archives.gentoo.org; Wed, 06 Jul 2005 18:36:02 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j66IXmki018671; Wed, 6 Jul 2005 18:33:48 GMT Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j66INEPY004150 for ; Wed, 6 Jul 2005 18:23:15 GMT Received: from mail.joat.com ([71.114.131.151]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0IJ7008XWXS89UWJ@vms046.mailsrvcs.net> for gentoo-user@lists.gentoo.org; Wed, 06 Jul 2005 13:24:08 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by mail.joat.com (Postfix) with ESMTP id 9EFA36667; Wed, 06 Jul 2005 14:24:30 -0400 (EDT) Received: from mail.joat.com ([127.0.0.1]) by localhost (cornholio [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18338-07; Wed, 06 Jul 2005 14:24:27 -0400 (EDT) Received: from cdnebinge (jnet.state.pa.us [206.224.31.162]) by mail.joat.com (Postfix) with ESMTP; Wed, 06 Jul 2005 14:24:27 -0400 (EDT) Date: Wed, 06 Jul 2005 14:24:45 -0400 From: "Dave Nebinger" Subject: RE: [gentoo-user] bash_history missing In-reply-to: <20050706181146.77198.qmail@web31703.mail.mud.yahoo.com> To: Cc: Message-id: <004401c58257$fcf0eae0$5f01010a@jnetlab.lcl> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-Mailer: Microsoft Outlook, Build 10.0.6626 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit Importance: Normal X-Priority: 3 (Normal) X-MSMail-priority: Normal DomainKey-Signature: a=rsa-sha1; h=Received:Received:From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:X-Priority:X-MSMail-Priority:X-Mailer:X-MimeOLE:In-Reply-To:Importance:X-Virus-Scanned; b=N+NZfWYleC03b904ani4XyrImA9CRKBhV3XxcgpnW1B/CsaoK6PntqZe1EP+JRvQ7Zlgcm8uLohOpoFIsQk+jWoCdjTHfqCJVGi1VOBRxX658jq/HU4NO4Nih+vNU5IRx5zGXu/q2T17p66XPyZftiReuF1hxwSDQ5qxeD/lln4=; c=nofws; d=joat.com; q=dns; s=selector1 X-Virus-Scanned: by amavisd-new at joat.com X-Archives-Salt: bc73c498-e999-4e3c-b43d-39101e0b8ed0 X-Archives-Hash: 82ac79f705403487b5042bc55870c01f > > Try to adjust those variables: > > > > HISTFILE=/home/your_account/.bash_history > > HISTFILESIZE=500 > > HISTSIZE=500 > > I had to run the above from root and sure enough, they > were written into my home dir .bash_history, along > with the exit command to get back to user-space. So I > ran a series of ls's just to check but they don't > appear. > > So what now? The environment variables only apply to the scope that they were set in. When you set them as root they only applied to the root session; exiting back to user space removed them. You want to delete the current .bash_history file as it is probably only writable by root. Then set the same environment variables in your current shell and they should stick. When they work add them to your .bashrc file. -- gentoo-user@gentoo.org mailing list