Mun wrote:
> For example, the first thing I hit was that when I run the
> script under csh, I get the following error:
>
> File name too long.
> if: Expression Syntax.
>
> I have no issues when run under bash. I'm sure this is something
> trivial, I just haven't looked into it yet. ...
As Greg says this problem is a missing #!/bin/bash line (or #!/bin/sh)
in the file. He says other good stuff too. But I wanted to make it
more emphatic that you need to add this line to the top line of those
improper scripts. Otherwise csh will try to handle them itself.
#!/bin/bash
Bob