Subject: Re: rc.subr problem with interpreted daemons
To: Ed Ravin <eravin@panix.com>
From: Andrew Brown <atatat@atatdot.net>
List: tech-userlevel
Date: 03/20/2002 16:53:51
>> The rc.d script writer just needs to set command_interpreted=foo.
>
>I like this solution, but there's one potential bugaboo:
>
>   $ head -3 make_class
>   #! /usr/local/bin/scsh \
>   -e main -s
>   !#
>
>The above fragment is the start of an scsh script I ran into
>the other day.  Do you want to parse these multi-line magic lines?

i don't have scsh around to test, but that looks like magic that scsh
parses.  the kernel (afaict) doesn't parse the \ as a "continued
line".  it just sees it as an argument.

	% cat > sahya << EOF
	#!/bin/echo \
	what?
	EOF
	% chmod +x sahya
	% ./sahya
	\ ./sayha
	% 

-- 
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org             * "ah!  i see you have the internet
twofsonet@graffiti.com (Andrew Brown)                that goes *ping*!"
andrew@crossbar.com       * "information is power -- share the wealth."