multi instance support bug (env not found)

2009-06-05 Thread Ralf Hildebrandt
I built and install 2.6.x today: % make makefile % make % make install on a pristine machine and tried the multi-instance support. I did this (fresh from my shell, no edits): r...@hanni:/etc/postfix# postmulti -l -a - - y /etc/postfix r...@hanni:/etc/postfix#

Re: multi instance support bug (env not found)

2009-06-05 Thread Wietse Venema
Ralf Hildebrandt: > /usr/libexec/postfix/postfix-script: 346: /bin/env: not found Replace "/bin/env find" by "`which find`. Wietse

Re: multi instance support bug (env not found)

2009-06-05 Thread Victor Duchovni
On Fri, Jun 05, 2009 at 10:05:16AM -0400, Wietse Venema wrote: > Ralf Hildebrandt: > > /usr/libexec/postfix/postfix-script: 346: /bin/env: not found > > Replace "/bin/env find" by "`which find`. Perhaps /usr/bin/env, will be more portable? It seems that /usr/bin/env is "more" correct than /bin/e

Re: multi instance support bug (env not found)

2009-06-05 Thread Gerard
On Fri, 5 Jun 2009 12:51:54 -0400 Victor Duchovni wrote: >Perhaps /usr/bin/env, will be more portable? It seems that /usr/bin/env >is "more" correct than /bin/env for both Linux and Solaris, does it >also work on *BSD systems? Also "find" is /usr/bin/find on both. FreeBSD: ~ $ which env /usr/bi

Re: multi instance support bug (env not found)

2009-06-05 Thread Wietse Venema
Victor Duchovni: > On Fri, Jun 05, 2009 at 10:05:16AM -0400, Wietse Venema wrote: > > > Ralf Hildebrandt: > > > /usr/libexec/postfix/postfix-script: 346: /bin/env: not found > > > > Replace "/bin/env find" by "`which find`. > > Perhaps /usr/bin/env, will be more portable? It seems that /usr/bin/

Re: multi instance support bug (env not found)

2009-06-05 Thread Rob Foehl
On Fri, 5 Jun 2009, Wietse Venema wrote: Victor Duchovni: On Fri, Jun 05, 2009 at 10:05:16AM -0400, Wietse Venema wrote: Ralf Hildebrandt: /usr/libexec/postfix/postfix-script: 346: /bin/env: not found Replace "/bin/env find" by "`which find`. Perhaps /usr/bin/env, will be more portable?

Re: multi instance support bug (env not found)

2009-06-05 Thread Victor Duchovni
On Fri, Jun 05, 2009 at 03:30:55PM -0400, Rob Foehl wrote: > Surprisingly enough, which isn't a standard utility -- and it's not > installed by default in the "minimal" package sets on several platforms, > mostly Linux variants. (Yes, this is annoying.) > > /usr/bin/env is probably the safest b

Re: multi instance support bug (env not found)

2009-06-05 Thread Charles Seeger
| "type" is a built-in in POSIX shells, and even the pre-historic SunOS | /bin/sh has a "type" built-in, be it a bare-bones version that does not | support the "-p" switch, that is sufficient. So another possibility is: | | set -- `type find` | shift `expr $# - 1` | # Now, $1 is the fu