Re: bash newbie prob

From: Russell Hanneken (me_at_privacy.net)
Date: 06/30/04

  • Next message: David Lord: "Re: bash newbie prob"
    Date: Wed, 30 Jun 2004 07:58:43 GMT
    
    

    codebreaker wrote:
    > My freebsd contains sh shell
    > Is it possible to put in bash?

    I think you meant to post this on comp.unix.bsd.freebsd.misc. NetBSD is
    a different operating system.

    In any case, yes, you can certainly install bash on FreeBSD. The
    simplest way is to use pkg_add:

         pkg_add -r bash

    This fetches the bash package from an ftp site and installs it. For
    more information on packages (and the ports collection), see the FreeBSD
    Handbook:

    http://www.nz.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports.html

    > How do i get get bash from a cd rom?( say using my linux cd which contains
    > bash ).

    You wouldn't want to use a version of bash found on a Linux CD.

    > Or does it come with the freeBSD cd and not get installed by default
    > but installs the sh shell?

    Bash might be on your FreeBSD CD. It isn't part of the base operating
    system, so it won't be installed with FreeBSD unless you make an effort
    to install it. To install the package from the CD, mount your CD and
    issue the command

         pkg_add /path/to/file/bash-<version>.tbz

    You'll have to fill in the details.

    > I could do that but cd /mnt/cdrom does not get me into the cd rom

    Did you mount the CD filesystem? If there's an entry in /etc/fstab for
    your CD drive, mounting it might be as easy as

         mount /cdrom

    For me, the FreeBSD installation program wrote the fstab entry so that
    the CD filesystem gets mounted on /cdrom, not /mnt/cdrom. Don't forget
    to umount it when you're done.

    > How to I do something equivalent in sh to
    >
    > cd /mnt/cdrom or cd /mnt/floppy

    The cd command works the same in sh as it does in bash.

    -- 
    Russell Hanneken
    eunaarxra@cbobk.pbz
    Use ROT13 to decode my email address.
    

  • Next message: David Lord: "Re: bash newbie prob"

    Relevant Pages

    • Re: installing Maple 7 under Woody
      ... default shell I guess on linux is bash. ... just post the code of shell script. ... I need to install Waterloo Maple 7on my ...
      (Debian-User)
    • Re: bash version?
      ... >>I use bash instead of the default csh shell that is part of FreeBSD world. ... If you install from port, then yes, all three are available and you have ...
      (freebsd-questions)
    • [OT] FreeBSD trial follow up
      ... the negative side of FreeBSD - ... I hate t/csh and adore bash. ... had to add passwd via root authority. ... If you like KDE, I ...
      (alt.os.linux)
    • Re: [OT] FreeBSD trial follow up
      ... I've no intension to offend some out there who are fans of FBSD. ... the negative side of FreeBSD - ... I hate t/csh and adore bash. ... If you like KDE, I ...
      (alt.os.linux)
    • Re: Bash / Promise Controller
      ... > bash shell under FreeBSD and the Kernel Configuration. ... I have been using the bash under linux for years and I would like to ... but more likely in the way xterm delivers these key combinations to it. ...
      (freebsd-questions)