Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!drivax!braun From: braun@dri.com (Kral) Newsgroups: comp.unix.ultrix Subject: Re: Ultrix 4.1 /bin/csh / awk bug? Message-ID: Date: 12 Apr 91 14:38:43 GMT Organization: Digital Research Inc Lines: 36 Can someone tell me if this is a known bug (I'm quite sure you'll tell me if I'm doing something stupid here)? It seems that either csh or awk is barfing on the '#!' majik number. Here's my test awk script: drivax> cat test.awk #! /bin/awk # { print "This is a test" } ### When I run it explicitly invoking awk, I get what you would expect (ie, nothing - but it doesn't complain about anything either): drivax> awk -f test.awk But if I invoke it directly from the shell, I get: drivax> ./test.awk awk: syntax error near line 1 awk: bailing out near line 1 drivax> Am I misunderstanding the operation of '#!'? Or is not not fully implemented in 4.1 Ultrix? -- kral * 408/647-6112 * ...!uunet!drivax!braun * braun@dri.com Whoever is calm and sensible is insane -- Rumi