help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-bash] bash to csh converter?


From: Bob Proulx
Subject: Re: [Help-bash] bash to csh converter?
Date: Mon, 21 Mar 2016 12:37:07 -0600
User-agent: Mutt/1.5.24 (2015-08-30)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]