Subject: Re: test: syntax error in +DEINSTALL using test -ef
To: None <>
From: Jeremy C. Reed <>
List: tech-pkg
Date: 10/04/2003 09:19:23
On Sat, 4 Oct 2003, Johnny C. Lam wrote:

> > $ sh
> > $ test /bin/ls -ef /bin/ls
> > test: syntax error
> > $ /bin/test /bin/ls -ef /bin/ls
> > test: syntax error
> >
> > Is -ef supposed to be standard (POSIX?) with test and sh?
> Does BSD/OS have a /bin/ksh?  If so, then we can set SH=/bin/ksh on
> BSD/OS and the Korn shell test builtin will support -ef.


I am using SH as "ksh -p", because this version of BSD/OS comes by default
with an ENV set to ~/.shellrc. And it is sourced each time ksh is run, but
it has syntax errors, because it uses bashisms based on $SHELL variable
which is still defined as bash.

The ksh also provides the "type" command too.


   Jeremy C. Reed