case: Too many arguments.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sdeg
    New Member
    • Jun 2007
    • 2

    case: Too many arguments.

    Hi
    I get the following. Where is the problem?

    > uname -a
    Linux ensv00lu 2.4.21-190-smp #1 SMP Tue Feb 10 01:07:03 UTC 2004 i686 unknown
    > csh
    case: Too many arguments.
  • RedSon
    Recognized Expert Expert
    • Jan 2007
    • 4980

    #2
    you might not have csh installed on you machine. Most come default with bash.

    Comment

    • Motoma
      Recognized Expert Specialist
      • Jan 2007
      • 3236

      #3
      Originally posted by sdeg
      Hi
      I get the following. Where is the problem?

      > uname -a
      Linux ensv00lu 2.4.21-190-smp #1 SMP Tue Feb 10 01:07:03 UTC 2004 i686 unknown
      > csh
      case: Too many arguments.
      What is your initial shell? It sounds like you may have an improperly configured .profile or .cshrc file causing problems. It could also be an alias problem.

      Comment

      • sdeg
        New Member
        • Jun 2007
        • 2

        #4
        Originally posted by Motoma
        What is your initial shell? It sounds like you may have an improperly configured .profile or .cshrc file causing problems. It could also be an alias problem.
        Thanks for the reply. Reading the csh man page I got to the same conclusion. Not having any need to have a .profile loaded or a .cshrc executed for my job I overcame the problem using -f as a switch to csh, thereby avoiding to fix something I'm not interested into. Shell starts good now, while shell scripts (putting -f switch on the shebang) start and get executed good as well but with the same error message printed on stderr.

        Anyway the solution it's quite good for my purpose. My reply is for completeness and appreciation for your post.

        Comment

        • Motoma
          Recognized Expert Specialist
          • Jan 2007
          • 3236

          #5
          Thank you for letting us know what the issue was and how you solved it. You are welcome here at The Scripts any time you have a problem.

          Comment

          Working...