NYAGOS - The Nihongo Yet Another GOing Shell .
English / Japanese
Substitution .
History .
!!previous input string!nn'th input string!-nn'th previous input string!STRinput string starting with STR!?STR?input string containing STR
These suffix are available.
:0command name:mm'th argument^first argument$last argument\*all argument@the directory
Variables .
nyagos.histchar: header-character for substitution (default:!)nyagos.antihistquot: characters to disable (default:'")
Environment variable .
~(tilde) are replaced to%HOME%or%USERPROFILE%.
Unicode Literal .
%u+XXXX%are replaced to Unicode charactor (XXXX is hexadecimal number.)
Command Substitution (nyagos.d\backquote.lua) .
`COMMAND`
OR $(COMMAND)
is replaced to what COMMAND print to standard output.
Brace Expansion (nyagos.d\brace.lua) .
echo a{b,c,d}e
is replaced to
echo abe ace ade
Inserting Interpreter-name (nyagos.d\suffix.lua) .
FOO.pl ...is replaced toperl FOO.pl ...FOO.py ...is replaced toipy FOO.py ...,py FOO.pyorpython FOO.py ...(inserted the first found interpreter's name)FOO.rb ...is replaced toruby FOO.rb ...FOO.lua ...is replaced tolua FOO.lua ...FOO.awk ...is replaced toawk -f FOO.awk ...FOO.js ...is replaced tocscript //nologo FOO.js ...FOO.vbs ...is replaced tocscript //nologo FOO.vbs ...FOO.ps1 ...is replaced topowershell -file FOO.ps1 ...
To append the new associtation between the suffix and interpreter, write
suffix.xxx = "INTERPRETERNAME"
suffix.xxx = { "INTERPRETERNAME","OPTION" ... }
suffix[".xxx] = "INTERPRETERNAME"
suffix[".xxx] = { "INTERPRETERNAME","OPTION" ... }
suffix(".xxx","INTERPRETERNAME")
suffix(".xxx",{ "INTERPRETERNAME","OPTION" ... })
in %USERPROFILE%\\.nyagos