From owner-freebsd-stable Mon Apr 10 20:37:54 2000 Delivered-To: freebsd-stable@freebsd.org Received: from mail.hcisp.net (Stargate.hcisp.net [208.60.89.18]) by hub.freebsd.org (Postfix) with SMTP id B890637B7A4 for ; Mon, 10 Apr 2000 20:37:50 -0700 (PDT) (envelope-from tim@mysql.com) Received: (qmail 32602 invoked from network); 11 Mar 2000 04:37:13 -0000 Received: from modem8.hcisp.net (HELO threads.polyesthetic.msg) (208.60.89.74) by stargate.hcisp.net with SMTP; 11 Mar 2000 04:37:13 -0000 Received: (qmail 1168 invoked by uid 1001); 11 Apr 2000 03:36:39 -0000 From: "Thimble Smith" Date: Mon, 10 Apr 2000 23:36:39 -0400 To: Graham Menhennitt Cc: freebsd-stable@FreeBSD.ORG Subject: Re: weirdness w/ gdb (and others) and home directory Message-ID: <20000410233639.F248@threads.polyesthetic.msg> References: <20000410022851.B8117@threads.polyesthetic.msg> <19960102012211.B660@gamma> <6WHyOMQjgFa=nE46yanjvQgl54mP@4ax.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <6WHyOMQjgFa=nE46yanjvQgl54mP@4ax.com>; from gfm@mira.net on Tue, Apr 11, 2000 at 09:28:41AM +1000 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Apr 11, 2000 at 09:28:41AM +1000, Graham Menhennitt wrote: >You don't have a line saying just "cd" at the start of your >.profile/bashrc/.cshrc by any chance, do you? Yes, I do. I traced it down to that just now, and was getting ready to reply to my earliner message like this: *** WARNING: I am a numbskull and anything I write in any of my *** messages is probably total rubbish. Please just delete this *** message from your mailbox. It's not a problem to put 'cd' into your .profile, because that is only run on login shells. If you're using FreeBSD's sh, it's not a problem to put 'cd' in the ENV script, because it only runs that script on interactive shells (as a security enhancement). But if you're using, say, pdksh, then it runs the ENV script on every shell invocation - and this was my problem. I just switched to using ksh recently and so .... Thanks for the tip, and now I'm being more careful about my shell init files, and what I put where. Tim -- WARNING: I'm not very bright, so probably what I've written in this message is either misleading or blatantly wrong. Please feel free to flame or mailbomb me. I deserve it. If I happen to have written any true statements above, it's mere luck and not due to my participation. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message