List Info

Thread: Bash Configuration Question




Bash Configuration Question
user name
2006-08-16 04:45:22
Be aware I'm just trying to learn NetBSD.

I found in the NetBSD wiki a great little help in
learning how to install packages (binaries). I used
this little hint to do "setenv PKG_PATH..." and
it
worked perfectly. The first thing I did was install
bash shell because I'm more used to that from my linux
experience. I also found a great tutorial on the wiki
telling me how to switch to using bash as my default
shell. This too worked great, but (I know some of you
have guessed this one) "pkg_add -v packagename does
not work anymore because it is only looking for the
package in my home directory. I have tried setenv
PKG_PATH again, but it says that no command exists. So
I'm guessing that since I'm not using the sh shell any
longer this is the issue.

How do I use bash and set the "PKG_PATH" back to
the
"ftp://" site?

Thanks for the help, or for pointing me to where I can
read the answer.

Steve
mowestusayahoo.com


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection
around 
http://mail.yahoo.com 
Bash Configuration Question
user name
2006-08-16 08:15:17
mowestusa wrote:
> Be aware I'm just trying to learn NetBSD.
> 
> I found in the NetBSD wiki a great little help in
> learning how to install packages (binaries). I used
> this little hint to do "setenv PKG_PATH..."
and it
> worked perfectly. The first thing I did was install
> bash shell because I'm more used to that from my linux
> experience. I also found a great tutorial on the wiki
> telling me how to switch to using bash as my default
> shell. This too worked great, but (I know some of you
> have guessed this one) "pkg_add -v packagename
does
> not work anymore because it is only looking for the
> package in my home directory. I have tried setenv
> PKG_PATH again, but it says that no command exists. So
> I'm guessing that since I'm not using the sh shell
any
> longer this is the issue.
> 
> How do I use bash and set the "PKG_PATH"
back to the
> "ftp://" site?
> 
setenv is the csh syntax, now you are using bash try
export PKG_PATH="ftp://foo.bar.com/whatever"
to keep it persistant for bash add that to ~/.bash_profile


> Thanks for the help, or for pointing me to where I can
> read the answer.
> 
> Steve
> mowestusayahoo.com
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam
protection around 
> http://mail.yahoo.com 

Bash Configuration Question
user name
2006-08-16 09:14:48
On 15 Aug 2006, at 21:45, mowestusa wrote:

> Be aware I'm just trying to learn NetBSD.
> 
> I found in the NetBSD wiki a great little help in
> learning how to install packages (binaries). I used
> this little hint to do "setenv PKG_PATH..."
and it
> worked perfectly. The first thing I did was install
> bash shell because I'm more used to that from my linux
> experience. I also found a great tutorial on the wiki
> telling me how to switch to using bash as my default
> shell. This too worked great, but (I know some of you
> have guessed this one) "pkg_add -v packagename
does
> not work anymore because it is only looking for the
> package in my home directory. I have tried setenv
> PKG_PATH again, but it says that no command exists. So
> I'm guessing that since I'm not using the sh shell
any
> longer this is the issue.
> 
> How do I use bash and set the "PKG_PATH"
back to the
> "ftp://" site?

You should edit your ~/.bash_profile to include
  PKG_PATH="ftp://......."
  PKG_PATH="ftp://......."
  export PKG_PATH
or
 export PKG_PATH="ftp://......."

Note that quotes round the path are needed.

David

Bash Configuration Question
user name
2006-08-16 07:45:21
On Tue, Aug 15, 2006 at 09:45:22PM -0700, mowestusa wrote:
> I have tried setenv PKG_PATH again, but it says that no
command exists.
> So I'm guessing that since I'm not using the sh shell
any longer this is
> the issue.

Yes, you're not using the csh-shell anymore.  In sh and
relatives like
bash, the command is
    PKG_PATH="the path here"
    export PKG_PATH
Or on one line:
    export PKG_PATH="the path here"

-- 
 Jarmo Jaakkola
Bash Configuration Question
user name
2006-08-16 08:31:28
> I have tried setenv
> PKG_PATH again, but it says that no command exists. So
> I'm guessing that since I'm not using the sh shell
any
> longer this is the issue.
>
> How do I use bash and set the "PKG_PATH"
back to the
> "ftp://" site?

You just use the following method to set the variable.  The
first command sets 
it and the second makes it an environment variable (setenv
combines these 
into one step).

PKG_PATH=ftp:// ...
export PKG_PATH

If you're really interested in knowing what the differences
are between the 
shells, there are many good sources out there.  A good
phrase to look up 
is "bourne shell", if you prefer bash.  You may
also want to look into the 
csh to understand what it does differently.

-Kevin
Bash Configuration Question
user name
2006-08-16 05:12:43
Am 16.08.2006, 06:45 Uhr, schrieb mowestusa
<mowestusayahoo.com>:

> Be aware I'm just trying to learn NetBSD.
>
[SNIP]
>
> How do I use bash and set the "PKG_PATH"
back to the
> "ftp://" site?
>
export PKG_PATH=YOUR_PKG_PATH

Just put it in your .profile or .bashrc to have it always
available at login.

HTH

Sebastian

[1-6]

about | contact  Other archives ( Real Estate discussion Medical topics )