Subject: Re: Changing exec's #! behavior
To: Christos Zoulas <christos@zoulas.com>
From: Jason R Thorpe <thorpej@zembu.com>
List: tech-kern
Date: 06/13/2000 17:25:32
On Tue, Jun 13, 2000 at 05:14:19PM -0700, Jason R Thorpe wrote:
> > #!/bin/sh # execute the shell.
> >
> > But I guess, fine I think it is more reasonable to pass the argv vector.
>
> Before:
>
> dr-evil:thorpej 4$ ./foo.sh
> # execute the shell.: Can't open # execute the shell.
> dr-evil:thorpej 5$
>
> After:
>
> sysbuild:thorpej 45$ ./foo.sh
> #: Can't open #
> sysbuild:thorpej 46$
I guess I should also clarify -- passing the entire argv vector
seriously complicates exec_script
--
-- Jason R. Thorpe <thorpej@zembu.com>