Return to BSD News archive
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!cory.EECS.Berkeley.EDU!alanp From: alanp@cory.EECS.Berkeley.EDU (Alan Pearson) Newsgroups: comp.os.386bsd.bugs Subject: #!prog doesn't work in NetBSD 0.8 Date: 6 Sep 1993 07:00:58 GMT Organization: University of California, Berkeley Lines: 18 Message-ID: <26en7a$ngc@agate.berkeley.edu> NNTP-Posting-Host: cory-138.eecs.berkeley.edu I have a wish program which is executable (called tcolor). The first line is: #!/usr/local/bin/wish -f When I run this script it doesn't work. The reason is that the command line that is executed is: /usr/local/bin/wish tcolor The shell drops the "-f"! This happens whether I run tcsh, csh or sh. Why? Is there a patch? I remember this problem being discussed when I was running 386bsd. But back then, *nothing* worked. #!/bin/sh scripts were executed under the wrong shell. Any ideas? ALAN PEARSON alanp@cory.eecs.berkeley.edu