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
email: firstname.lastname@example.org, http://www.poboxes.com/adrian.bridgett
Windows NT - Unix in beta-testing. PGP key available on public key servers
To UNSUBSCRIBE, email to email@example.com
with a subject of "unsubscribe". Trouble? Contact firstname.lastname@example.org