Date: Mon, 18 Nov 2002 20:51:59 -0800 From: paul beard <paulbeard@mac.com> To: Tamir Halperin <tamir@brobus.net> Cc: FreeBSD <freebsd-questions@FreeBSD.ORG> Subject: Re: bash .profile issues Message-ID: <3DD9C36F.9040108@mac.com> In-Reply-To: <985DF46E87E0C047A3670048DBCAD0556A48@andrew.brobus.net> References: <985DF46E87E0C047A3670048DBCAD0556A48@andrew.brobus.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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 @ <http://paulbeard.no-ip.org/movabletype/> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3DD9C36F.9040108>