Ultrix 4.1 /bin/csh / awk bug?

Kral braun at dri.com
Sat Apr 13 00:38:43 AEST 1991


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 </dev/null
	drivax>

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 at dri.com
Whoever is calm and sensible
	is insane
		-- Rumi



More information about the Comp.unix.ultrix mailing list