Message217

Author zenzen
Recipients
Date 2000-12-01.11:03:16
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
% jython -c 'import sys'
Traceback (innermost last):
  (no code object) at line 0
  File "<string>", line 1
        import
              ^
SyntaxError: invalid syntax

Editing the wrapper, and replacing $* with "$@" fixes
the problem.

From man sh:

Inside a pair of double quote marks (""), parameter and com-
mand substitution occurs and the shell quotes the results to
avoid blank interpretation and file name generation.  If  $*
is within a pair of double quotes, the positional parameters
are substituted and quoted, separated by quoted spaces  ("$1
$2  ..."); however, if $@ is within a pair of double quotes,
the  positional  parameters  are  substituted  and   quoted,
separated by unquoted spaces ("$1" "$2" ... ).  \ quotes the
characters \, `,  , and $.  The  pair  \newline  is  removed
before  parameter  and command substitution.  If a backslash
precedes characters other than \, `,  , $, and newline, then
the backslash itself is quoted by the shell.
History
Date User Action Args
2008-02-20 17:16:46adminlinkissue224026 messages
2008-02-20 17:16:46admincreate