Re: Problem with my shell
>
> On Mon, May 04, 1998 at 02:08:36AM -0400, Jeff Shilt wrote:
> > I wrote a postinst shell script for a package and when I went to test it
> > I get
> > bash: ././postinst: no such file or directory
> > I changed my PATH environent variable around a bunch, even took out .
> > and tried to run postinst with ./postinst and I get
> > bash: ./postinst: no such file or directory
> >
> > I cut the script down to:
> > #! /bin/sh
> >
> > echo Creating symlinks in directory
> >
> > and I don't see that there's anything wrong with this. The file has
> > executable permissions. If I go to /var/lib/dpkg/info and run one of the
> > scripts there with ./filename it runs fine. It just seems to be any file
> > I create.
> > What's up with this?
>
> Try removing the space after "#!". Also ensure the script is executable
> (chmod +x postinst), not that this will make much difference
>
> Adrian
>
I did remove the remove the spaces, that wasn't it. However, I did solve
it by using mcedit from mc. Apparently it had something to do with how ae
was saving it. I've stopped using ae!
Thanks, Jef
--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: