-s flag not supported
---------------------
Key: JRUBY-1951
URL: http://jira.codehaus.org/browse/JRUBY-1951
Project: JRuby
Issue Type: Bug
Reporter: Charles Oliver Nutter
Assignee: Thomas E Enebo
Priority: Minor
Fix For: JRuby 1.1RC2
>From Ruby man page:
{noformat}
-s Enables some switch parsing for switches after script name
but before any file name arguments (or before a --). Any
switches found there are removed from ARGV and set the
corresponding variable in the script. For example:
#! /usr/local/bin/ruby -s
# prints "true" if invoked with `-xyz' switch.
print "true\n" if $xyz
On some systems $0 does not always contain the full path-
name, so you need the -S switch to tell Ruby to search for
the script if necessary. To handle embedded spaces or
such. A better construct than $* would be ${1+"$@"}, but
it does not work if the script is being interpreted by
csh(1).
{noformat}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email