Calling sh from csh

Kralj Karlo karlo at klarinet.osamsb.hr
Sun Apr 5 20:12:12 UTC 2020


On Sun, Apr 5, 2020, at 19:48, Jos Chrispijn wrote:
> Can you tell me how I could find out if a shell script runs on csh or sh 
> and then execute it from within the right shell?

The conventional way is to execute the shell script rather than executing
the shell and to rely on the shebang in the first line.

I guess that won't work for you. Why won't it work?


More information about the freebsd-questions mailing list