From owner-freebsd-questions Mon Nov 18 20:52:10 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BF74337B415 for ; Mon, 18 Nov 2002 20:52:08 -0800 (PST) Received: from smtpout.mac.com (smtpout.mac.com [17.250.248.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6855043E42 for ; Mon, 18 Nov 2002 20:52:08 -0800 (PST) (envelope-from paulbeard@mac.com) Received: from asmtp01.mac.com (asmtp01-qfe3 [10.13.10.65]) by smtpout.mac.com (Xserve/MantshX 2.0) with ESMTP id gAJ4q8K5029580 for ; Mon, 18 Nov 2002 20:52:08 -0800 (PST) Received: from mac.com ([12.231.115.57]) by asmtp01.mac.com (Netscape Messaging Server 4.15) with ESMTP id H5T46U00.RTH; Mon, 18 Nov 2002 20:52:06 -0800 Message-ID: <3DD9C36F.9040108@mac.com> Date: Mon, 18 Nov 2002 20:51:59 -0800 From: paul beard User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.2b) Gecko/20021116 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tamir Halperin Cc: FreeBSD Subject: Re: bash .profile issues References: <985DF46E87E0C047A3670048DBCAD0556A48@andrew.brobus.net> In-Reply-To: <985DF46E87E0C047A3670048DBCAD0556A48@andrew.brobus.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Tamir Halperin wrote: > > Questions: what happens is you try something like this? > 1) My aliases don't work. Why? your quotes are in the wrong place. try: alias seti = 'cat /var/db/setiathome/state.sah | grep prog' do these work for you? [/usr/ports/java/jdk13]:: bash --version bash --version GNU bash, version 2.05b.0(1)-release (i386-portbld-freebsd4.6) [/usr/ports/java/jdk13]:: cat >> /home/paul/.profile alias TEST='echo this is a test.' [/usr/ports/java/jdk13]:: . /home/paul/.profile [/usr/ports/java/jdk13]:: TEST this is a test. > > 2) When I make a change, let's say to the aliases, I don't know > of any other way for it to take immediate affect unless I log > out and log back in again. Is there a command approach to this? . ~/.profile will reread/reload it. > > 3) Is there a good tutorial about environment settings and other > issues such as the ones I'm struggling with? > you could look for some bash dotfiles. the ORA book is a good reference. see also: http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=bash+tutorial&btnG=Google+Search -- Paul Beard / 8040 27th Ave NE / Seattle WA 98115 / paulbeard [at] mac [ dot] com / 206 529 8400 weblog @ The problem with people who have no vices is that generally you can be pretty sure they're going to have some pretty annoying virtues. -- Elizabeth Taylor To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message