The macosxhints Forums

The macosxhints Forums (http://hintsforums.macworld.com/index.php)
-   UNIX - Newcomers (http://hintsforums.macworld.com/forumdisplay.php?f=15)
-   -   Panther and Fink (http://hintsforums.macworld.com/showthread.php?t=16269)

jiclark 11-03-2003 02:04 AM

Also, I can remember many times seeing hints that tell you to "...put [something] in your PATH..."; how exactly do I do that?

Is that the same as putting a line in my '.profile' (in zsh) or my '.cshrc' (in tcsh)?

I feel like I'm just beginning to understand a little bit about all of this...

Maybe!

sao 11-03-2003 02:14 AM

jiclark

Quote:

can you tell me why sao is having me go through such hoops to install zsh through fink???
Sorry, my mistake, when I installed zsh from Fink, it was the latest version. Of course you can use /bin/zsh in Panther.

Quote:

Bash gives me 'command not found' when I enter 'fink'.
Just write:

source /sw/bin/init.sh

in your .bash_profile

Code:

#!/bin/sh
man -t $1 > /tmp/$1.ps
open /tmp/$1.ps

The script works for me from zsh, just make sure you have in your .zshrc:
Code:

## add ~/bin to path
path=($path ~/bin)


jiclark 11-03-2003 02:27 AM

questions, questions...
 
1) I've noticed that there are two zsh files in /bin:

zsh
zsh-4.1.1

Why is that? Is there a difference? And if there is, how do I choose one over the other?

2) You say:

Just write:

source /sw/bin/init.sh

in your .bash_profile

Where is '.bash_profile', and will this fix things in zsh as well as bash? Where is '.profile' [for zsh] if it's different than 'bash.profile'?

3) What is "your .zshrc" and where is it? And how does it differ from '.profile'??

[Man, I think it's time for bed! My head is beginning to spin a bit from all this!]

I'll come back tomorrow and try and sort this out, once and for all...

<Yeah, right!>

sao 11-03-2003 02:36 AM

jiclark,

Many of your questions can be answered by making a search in the forums and and I would suggest a bit of study from your side. :)

Have a good rest tonight and tomorrow is a new day!

jiclark 11-03-2003 02:41 AM

Could you maybe just answer the first question I had? ...About 'zsh' vs 'zsh-4.1.1'??? I just did a quick search on that, and this was the only thread that came up!

Otherwise, I know I need to do some studying, and I surely will!

Later,
John-o

sao 11-03-2003 03:12 AM

jiclark,
Code:

[pm @ Sao: /bin] % grepbom /bin/zsh
...../bin/zsh  479,120 Wed Sep 24 14:46:18 2003
./bin/zsh-4.1.1 479,120 Wed Sep 24 14:46:22 2003
  ====> /Library/Receipts/BaseSystem.pkg/Contents/Archive.bom


............................................

Maybe you choose /bin/zsh ?

sao 11-03-2003 03:15 AM

jiclark,

To help you in your studies...what "dot" files do the various shells use?
Code:

Although this may not be a complete listing, this provides the majority of information.

      csh
          Some versions have system-wide .cshrc and .login files.  Every
          version puts them in different places.

          Start-up (in this order):
              .cshrc  - always; unless the -f option is used.
              .login  - login shells.

          Upon termination:
              .logout  - login shells.

          Others:
              .history - saves the history (based on $savehist).

      tcsh
          Start-up (in this order):
              /etc/csh.cshrc - always.
              /etc/csh.login - login shells.
              .tcshrc        - always.
              .cshrc        - if no .tcshrc was present.
              .login        - login shells

          Upon termination:
              .logout        - login shells.

          Others:
              .history      - saves the history (based on $savehist).
              .cshdirs      - saves the directory stack.

      sh
          Start-up (in this order):
              /etc/profile - login shells.
              .profile    - login shells.

          Upon termination:
              any command (or script) specified using the command:
                trap "command" 0

      ksh
          Start-up (in this order):
              /etc/profile - login shells.
              .profile    - login shells; unless the -p option is used.
              $ENV        - always, if it is set; unless the -p option is used.
                          /etc/suid_profile - when the -p option is used.

          Upon termination:
              any command (or script) specified using the command:
                trap "command" 0

      bash
          Start-up (in this order):
              /etc/profile  - login shells.
              .bash_profile - login shells.
              .profile      - login if no .bash_profile is present.
              .bashrc      - interactive non-login shells.
              $ENV          - always, if it is set.

          Upon termination:
              .bash_logout  - login shells.

          Others:
              .inputrc      - Readline initialization.

      zsh
          Start-up (in this order):
              .zshenv  - always, unless -f is specified.
              .zprofile - login shells.
              .zshrc    - interactive shells, unless -f is specified.
              .zlogin  - login shells.

          Upon termination:
              .zlogout  - login shells.

      rc
          Start-up:
              .rcrc - login shells


stetner 11-03-2003 03:56 AM

Re: So Douglas...
 
Quote:

Originally posted by jiclark
...can you tell me why sao is having me go through such hoops to install zsh through fink??? What advantage will that give me?

Thanks for your interest, and help!

John-o
Well, look at the topic of this thread (panther and fink) :) Sometimes a thread starts and people assume because a question is asked in the thread it is related to that thread.

It probably would have been more appropriate for you to have started a new thread along the lines of 'How do I switch to zsh' then we wouldn't have all though that you wanted to do it with fink.

As to why you would use the fink version of zsh, the reason is that the fink software can be much newer than what apple provides, by the time Apple gets through all its testing etc, the source could be 6 months old. You might need a new feature, or even want to hack at the source code.


All times are GMT -5. The time now is 10:43 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.