Subject: env is not splitting command and argument as suggested by the synopsis
From: Esli <[email-masked]>
To: <[email-masked]>
Date: Mon, 12 Oct 2015 10:48:55 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello,

  env is not splitting command and argument as suggested by the synopsis:

SYNOPSIS

       env [OPTION]... [-] [NAME=VALUE]... [COMMAND [ARG]...]

Example:

#!/usr/bin/env perl -w

produces:

/usr/bin/env: perl -w: No such file or directory

Apparently, env is looking for command "perl -w", not for command "perl" and
than passing him "-w"

Regards

   Petr