From: Stu Date: 2013-04-27T11:26:43+09:00 Subject: Re: what is the $- magic global? --001a11c34ae668d0c004db4e6176 Content-Type: text/plain; charset=ISO-8859-1 It's not documented in English.rb so it has not been aliased to a REALLY_LONG_VARIABLE_4JAVA_DEVS The posix shell definition for $- is: $- (hyphen) Expands to the current option flags (the single-letter option names concatenated into a string) as specified on invoca- tion, by the *set* built-in command, or implicitly by the shell. I see no reason for ruby to have it defined differently. English.rb is well documented in 2.0: # $ERROR_INFO:: $! # $ERROR_POSITION:: $@ # $FS:: $; # $FIELD_SEPARATOR:: $; # $OFS:: $, # $OUTPUT_FIELD_SEPARATOR:: $, # $RS:: $/ # $INPUT_RECORD_SEPARATOR:: $/ # $ORS:: $\ # $OUTPUT_RECORD_SEPARATOR:: $\ # $INPUT_LINE_NUMBER:: $. # $NR:: $. # $LAST_READ_LINE:: $_ # $DEFAULT_OUTPUT:: $> # $DEFAULT_INPUT:: $< # $PID:: $$ # $PROCESS_ID:: $$ # $CHILD_STATUS:: $? # $LAST_MATCH_INFO:: $~ # $IGNORECASE:: $= # $ARGV:: $* # $MATCH:: $& # $PREMATCH:: $` # $POSTMATCH:: $' # $LAST_PAREN_MATCH:: $+ --001a11c34ae668d0c004db4e6176 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
It's not documented in English.rb so it has not b= een aliased to a REALLY_LONG_VARIABLE_4JAVA_DEVS

The posix she= ll definition for $- is:
$-      (hyphen) Expands to the current op=
tion flags (the single-letter
	     option names concatenated into a string) as specified on invoca-
	     tion, by the set built-in command, or implicitly by the shell.=


I see no reason for ruby to have it defined differently.=


English.rb is well documented in 2.0:

# $ERROR_I= NFO:: $!
# $ERROR_POSITION:: $@
# $FS:: $;
# = $FIELD_SEPARATOR:: $;
# $OFS:: $,
# $OU= TPUT_FIELD_SEPARATOR:: $,
# $RS:: $/
# $INPUT= _RECORD_SEPARATOR:: $/
# $ORS:: $\
# $OUTPUT_RECORD_SEPARATOR:: $\
# = $INPUT_LINE_NUMBER:: $.
# $NR:: $.
# $LA= ST_READ_LINE:: $_
# $DEFAULT_OUTPUT:: $>
# $DE= FAULT_INPUT:: $<
# $PID:: $$
# $PROCESS_ID:: $$
# = $CHILD_STATUS:: $?
# $LAST_MATCH_INFO:: $~
# $IG= NORECASE:: $=3D
# $ARGV:: $*
# $MAT= CH:: $&
# $PREMATCH:: $`
# $POSTMATCH:: $'# $LAST_PAREN_MATCH:: $+
--001a11c34ae668d0c004db4e6176--