My tcsh is messed up i think, help please

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

  1. justl2003 macrumors newbie

    Joined:
    May 22, 2007
    #1
    Im running 10.4.8
    well, i installed perl and took my gfdsg.pl 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 gfdsg.pl. It said "-bash: /usr/bin/gfdsg.pl: Permission denied". Then i went to here.

    http://www.macosxhints.com/article.p...20826003806202

    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.

    -Fred
    Massachusetts Institute of Technology
    tritan@mit.edu
    "


    So can someone please help me
     
  2. sfisher macrumors regular

    Joined:
    Jun 20, 2007
    Location:
    Albuquerque, NM USA
    #2
    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 gfdsg.pl 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

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

Share This Page