Re: [AD] Deprecated functions and fix.sh

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Sam Hocevar wrote:

On Thu, Jun 26, 2003, Jon Rafkind wrote:
if [ -e configure ]; then
	chmod +x configure
fi

I get an error here, something like:
fix.sh: test: Arguement expected.

  In order to work on Solaris, -e (which is a bashism) should be
replaced with -f.

should work fine. -e means if file exists, and -f means if file exists and is a regular file, and [] means run test. in bash test is integrated into the shell, but on bourne and compatibles [] calls the test program, and IIRC bash does the same when running in bourne compatibility mode, which is something it does when the first line of the script is #!/bin/sh. does the solaris man page for test list the -e option? also does the solaris shell have test integrated?

--

One OS to rule them all,
one OS to find them,
one OS to bring them all
and in the darkness bind them.







Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/