From owner-freebsd-questions Tue Apr 17 15:54:34 2001 Delivered-To: freebsd-questions@freebsd.org Received: from bingnet2.cc.binghamton.edu (bingnet2.cc.binghamton.edu [128.226.1.18]) by hub.freebsd.org (Postfix) with ESMTP id 478C437B43F for ; Tue, 17 Apr 2001 15:54:30 -0700 (PDT) (envelope-from zzhang@cs.binghamton.edu) Received: from onyx (onyx.cs.binghamton.edu [128.226.140.171]) by bingnet2.cc.binghamton.edu (8.11.2/8.11.2) with ESMTP id f3HMsT206945 for ; Tue, 17 Apr 2001 18:54:29 -0400 (EDT) Date: Tue, 17 Apr 2001 18:54:27 -0400 (EDT) From: Zhihui Zhang X-Sender: zzhang@onyx To: freebsd-questions@freebsd.org Subject: command script file Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG If I have the following file named doit: # cat doit pwd ls -al # chmod u+x doit. # ./doit It runs OK even if there is no #!/bin/sh at its first line. Is this feature implemented in the shell or kernel? If in shell, how does it implement it? Thanks. -Zhihui To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message