My tcsh is messed up i think, help please

Discussion in 'macOS' started by justl2003, Jul 7, 2007.

  1. justl2003 macrumors newbie

    May 22, 2007
    Im running 10.4.8
    well, i installed perl and took my file (yes it works, i tested it on my other computer, its not corrupt or anything) and put it into /usr/bin/.

    So, i then went into terminal, cd'd the directory, and entered It said "-bash: /usr/bin/ Permission denied". Then i went to here.

    I then realized that i dont even have a /usr/share/init/tcsh directory, only a /usr/share/tcsh/examples/ with all the files in it (aliases, completions, environment, login, logout, rc, README, tcsh.defaults).

    I then ran these commands that the READ me told me to:
    echo "source /usr/share/tcsh/examples/rc" >> ~/.tcshrc
    echo "source /usr/share/tcsh/examples/login" >> ~/.login
    echo "source /usr/share/tcsh/examples/logout" >> ~/.logout

    And i dont think that did anything at all....

    here the README file

    "This directory contains some useful tcsh files.

    In order to use this configuration:

    echo "source /usr/share/tcsh/examples/rc" >> ~/.tcshrc
    echo "source /usr/share/tcsh/examples/login" >> ~/.login
    echo "source /usr/share/tcsh/examples/logout" >> ~/.logout

    To do this system-wide, do the same instead to /etc/csh.cshrc, /etc/csh.login, and /etc/csh.logout.

    In order to customize tcsh:

    mkdir -p ~/Library/init/tcsh

    and create the following files there as necessary:

    aliases.mine - shell aliases
    completions.mine - completions
    environment.mine - environment
    rc.mine - run commands
    path - command search path

    See the corresponding file in /usr/share/tcsh/examples for more information about the role of each file. You can easily extend or override the configuration provided by the default file. For example, you can add more aliases by adding the appropriate commands in aliases.mine.

    Massachusetts Institute of Technology

    So can someone please help me
  2. sfisher macrumors regular

    Jun 20, 2007
    Albuquerque, NM USA
    I'm not quite sure what you're trying to do because that macosxhints link isn't working for me. First of all, what does your script do? Did you make it executable? Is your shell even tcsh? You don't need to do anything to customize it to make that script work. "echo $SHELL" will show your shell. It sounds like you're using bash because of the error above.
  3. Thinine macrumors newbie

    Jul 23, 2002
    You don't need to do anything with tcsh, you're using bash.

Share This Page