📄 nutmeg.txt
字号:
TEXT: H Glt Hor G< H(less than)TEXT: H Gge Hor G>= H(greater than or equal to)TEXT: H Gle Hor G<= H(less than or equal to)TEXT: HTEXT: Note that for this command, < and > do not denote IOTEXT: H redirection.TEXT: HTEXT: SEEALSO: SPICE:stepSEEALSO: SPICE:iplotSEEALSO: SPICE:deleteSEEALSO: NUTMEG:statusSUBJECT: strcmpTITLE: strcmpTEXT: TEXT: Gstrcmp H_v_a_r_n_a_m_e _s_t_r_i_n_g_1 _s_t_r_i_n_g_2TEXT: H The value of _v_a_r_n_a_m_e is set to a number that is greaterTEXT: H than, equal to, or less than 0 according as _s_t_r_i_n_g_1 isTEXT: H lexically before, equal to, or after _s_t_r_i_n_g_2. ThisTEXT: H command is a very bad thing, but there seems to be noTEXT: H other way to do string comparisons given the restric-TEXT: H tions of the Gnutmeg Hcommand language.TEXT: HTEXT: SUBJECT: unaliasTITLE: unaliasTEXT: TEXT: Gunalias H[ _w_o_r_d ] ...TEXT: H Removes any aliases associated with all the _w_o_r_ds. TheTEXT: H argument may be "*", in which case all aliases areTEXT: H deleted.TEXT: HTEXT: SEEALSO: NUTMEG:aliasSEEALSO: NUTMEG:aliasesSUBJECT: undefineTITLE: undefineTEXT: TEXT: Gundefine H[ _w_o_r_d ] ...TEXT: H Remove all the macro functions defined for the _w_o_r_ds.TEXT: H If the argument is "*", then all macro functions areTEXT: H deleted. Note that all functions with the given namesTEXT: H are removed, so there is no way to delete a functionTEXT: H with a particular arity without deleting all functionsTEXT: H with that name.TEXT: HTEXT: SEEALSO: NUTMEG:defineSEEALSO: NUTMEG:expressionsSUBJECT: unletTITLE: unletTEXT: TEXT: Gunlet H[ _v_e_c_n_a_m_e ] ...TEXT: H All the named vectors are removed from the currentTEXT: H plot. If you Gunlet Ha vector which is the default scaleTEXT: H (e.g. GTIMEH), a random remaining vector will become theTEXT: H default scale.TEXT: HTEXT: SEEALSO: NUTMEG:letSUBJECT: unsetTITLE: unsetTEXT: TEXT: Gunset H[ _v_a_r_n_a_m_e ] ...TEXT: H All the named variables are unset. The argument may beTEXT: H "*", in which case all variables are unset (althoughTEXT: H this is usually not something that you would want toTEXT: H do).TEXT: HTEXT: SEEALSO: NUTMEG:setSEEALSO: NUTMEG:variablesubSEEALSO: NUTMEG:variablesSUBJECT: versionTITLE: versionTEXT: TEXT: Gversion H[ _v_e_r_s_i_o_n _n_a_m_e ]TEXT: H With no arguments, this command prints out the currentTEXT: H version of GspiceH. If there are arguments, it comparesTEXT: H the current version with the given version and prints aTEXT: H warning if they differ. A Gversion Hcommand is usuallyTEXT: H included in the rawfile.TEXT: HTEXT: SUBJECT: whileTITLE: whileTEXT: TEXT: Gwhile H_c_o_n_d_i_t_i_o_nTEXT: H This command defines a block which is executed whileTEXT: H the condition is true.TEXT: HTEXT: SEEALSO: NUTMEG:proglangSUBJECT: writeTITLE: writeTEXT: TEXT: Gwrite H[ _f_i_l_e [ _e_x_p_r ] ... ]TEXT: H Writes out the _e_x_p_rs to the file. First vectors areTEXT: H grouped together by plots, and written out as such.TEXT: H (E.g, if the expression list contained three vectorsTEXT: H from one plot and two from another, then two plots willTEXT: H be written, one with three vectors and one with two.)TEXT: H Additionally, if the scale for a vector isn't present,TEXT: H it is automatically written out as well. The defaultTEXT: H format is GasciiH, but this may be changed with Gset file-TEXT: H typeH. The default filename is GrawspiceH, or the argu-TEXT: H ment to the G-r Hflag on the command line, if there wasTEXT: H one, and the default expression list is GallH.TEXT: HTEXT: SEEALSO: NUTMEG:loadSEEALSO: NUTMEG:expressionsSUBJECT: cshstuffTITLE: C-shell Like FeaturesTEXT: TEXT: Various features are available in the Gnutmeg Hparser whichTEXT: H are derived from the user interface of the C-Shell. TheseTEXT: H include IO redirection, history substitution, aliases, glo-TEXT: H bal substitution, and command completion.TEXT: HTEXT: SUBTOPIC: NUTMEG:aliases NUTMEG:ccom NUTMEG:globSUBTOPIC: NUTMEG:historysub NUTMEG:io NUTMEG:quotingSUBTOPIC: NUTMEG:semi NUTMEG:unixcomcomm NUTMEG:variablesubSUBJECT: aliasesTITLE: AliasesTEXT: TEXT: After history expansion, if the first word on the commandTEXT: H line has been defined as an alias, the text for which it isTEXT: H an alias for is substituted. The alias may contain refer-TEXT: H ences to the arguments provided on the command line, inTEXT: H which case the appropriate arguments are substituted in. IfTEXT: H there are no such references, any arguments given areTEXT: H appended to the end of the alias text.TEXT: HTEXT: In the body if the alias text, any strings of the formTEXT: H G!:H_n_u_m_b_e_r are replaced with the _n_u_m_b_e_r'th argument of theTEXT: H actual command line. Note that when the alias is definedTEXT: H with the Galias Hcommand, these strings must be quoted toTEXT: H prevent history substitution from replacing the G!H's beforeTEXT: H the Galias Hcommand can get to them.TEXT: HTEXT: Thus the commandTEXT: HTEXT: Galias Hfoo Gecho H'!:2' '!:1'TEXT: HTEXT: Causes "foo bar baz" to be replaced with "echo baz bar".TEXT: H Other G! Hmodifiers as described in the section on historyTEXT: H substitution may also be used, always refering to the actualTEXT: H command line arguments given.TEXT: HTEXT: If a command line starts with a backslash (`\') any aliasTEXT: H substitution is inhibited.TEXT: HTEXT: SEEALSO: NUTMEG:aliasSEEALSO: NUTMEG:unaliasSUBJECT: ccomTITLE: Command CompletionTEXT: TEXT: With BSD UNIX, Tenex-style command completion is available.TEXT: H If GEOF H(control-D) is typed after the first character on theTEXT: H line, a list of the commands or possible arguments isTEXT: H printed. (If a control-D is typed as the first character onTEXT: H a line it will exit the program.) If an escape is typed,TEXT: H then the program will try to complete the word being typedTEXT: H based on the choices available, or if there is more than oneTEXT: H posibility, it will complete as much as it can. CommandTEXT: H completion knows about commands, most keywords, variable andTEXT: H vector names, file names, and several other types of argu-TEXT: H ments.TEXT: HTEXT: SEEALSO: SPICE:dashqSUBJECT: globTITLE: Global SubstitutionTEXT: TEXT: The characters `~', `{', and `}' have the same effects asTEXT: H they do in the C-Shell, i.e., home directory and alternativeTEXT: H expansion. The string ~_u_s_e_r at the beginning of a word isTEXT: H replaced by the given user's home directory, or if the firstTEXT: H component of the pathname is simply ~, the current user'sTEXT: H directory is used. The stringTEXT: H _S_t_u_f_fG{H_S_t_r_i_n_g_1,_S_t_r_i_n_g_2,..._S_t_r_i_n_g_NG}H_M_o_r_e_s_t_u_f_f is replaced byTEXT: H the list of words _S_t_u_f_f_S_t_r_i_n_g_1_M_o_r_e_s_t_u_f_fTEXT: H _S_t_u_f_f_S_t_r_i_n_g_2_M_o_r_e_s_t_u_f_f ... _S_t_u_f_f_S_t_r_i_n_g_N_M_o_r_e_s_t_u_f_f. CurlyTEXT: H braces may be nested. It is possible to use the wildcardTEXT: H characters G`*'H, G`?'H, G`['H, and G`]' Hto match filenames, whereTEXT: H G`*' Hdenotes 0 or more characters, G`?' Hdenotes one character,TEXT: H and G[] Hdenotes a range of characters, but only if you GunsetTEXT: H noglob Hfirst. This makes them rather useless for typingTEXT: H algebraic expressions, so you should Gset noglob Hagain afterTEXT: H you are done with wildcard expansion. Note that the patternTEXT: H G[^abc] Hwill match all characters _e_x_c_e_p_t G`a', `b', Hand G`c'.TEXT: H HIdeally the parser should know which commands requireTEXT: H filename arguments in which positions, and so glob expansionTEXT: H for those words only.TEXT: HTEXT: SEEALSO: NUTMEG:noglobSUBJECT: historysubTITLE: History SubstitutionTEXT: TEXT: History substitutions are prefixed by the character G!H, or atTEXT: H the beginning of a line, the character G^H. Briefly, theTEXT: H string G!! His replaced by the previous command, the stringTEXT: H G!H_p_r_e_f_i_x is replaced by the last command with that prefix,TEXT: H the string G!?H_p_a_t_t_e_r_n is replaced by the last command con-TEXT: H taining that pattern, the string G!H_n_u_m_b_e_r is replaced by theTEXT: H event with that number, and G^H_o_l_d_p_a_t_t_e_r_nG^H_n_e_w_p_a_t_t_e_r_n isTEXT: H replaced by the previous command with _n_e_w_p_a_t_t_e_r_n substitutedTEXT: H for _o_l_d_p_a_t_t_e_r_n.TEXT: HTEXT: Additionally, a G!H_s_t_r_i_n_g sequence may be followed by a modif-TEXT: H ier prefixed with a G:H. This modifier may select one or moreTEXT: H words from the event - :_1 selects the first word, :_2-_5TEXT: H selects the second through the fifth word, :$ selects theTEXT: H last word, and :$-_0 selects all of the words but reversesTEXT: H their order.TEXT: HTEXT: Two other G: Hmodifiers are supported: :_p will cause the com-TEXT: H mand to be printed but not executed, and :_s^_o_l_d^_n_e_w willTEXT: H replace the pattern _o_l_d with the pattern _n_e_w. (The sequenceTEXT: H ^_o_l_d^_n_e_w is synonymous with !!:_s^_o_l_d^_n_e_w.)TEXT: HTEXT: All the commands typed by the user are saved on the _h_i_s_t_o_r_yTEXT: H _l_i_s_t. This may be examined with the Ghistory Hcommand, andTEXT: H its maximum length changed by changing the value of the Ghis-TEXT: H tory Hvariable.TEXT: HTEXT: SEEALSO: NUTMEG:historyvarSUBJECT: ioTITLE: I/O RedirectionTEXT: TEXT: The input to or output from commands may be changed from theTEXT: H terminal to a file by including an IO redirection on theTEXT: H command line. The possible redirections are:TEXT: HTEXT: > _f_i_l_eTEXT: H Sends the output of the command into the _f_i_l_e.TEXT: HTEXT: >> _f_i_l_eTEXT: H Appends output to the _f_i_l_e or creates it if it doesn'tTEXT: H exist.TEXT: HTEXT: >& _f_i_l_eTEXT: H Sends both the output and the error messages to theTEXT: H _f_i_l_e.TEXT: HTEXT: >>& _f_i_l_eTEXT: H Appends both the output and the error messages to theTEXT: H _f_i_l_e.TEXT: HTEXT: < _f_i_l_eTEXT: H Reads input from the _f_i_l_e.TEXT: HTEXT: Both an input redirection and an output redirection may beTEXT: H present on a command line. More than one of each may not beTEXT: H present, however. IO redirections must be at the end of theTEXT: H command line.TEXT: HTEXT: SUBJECT: quotingTITLE: QuotingTEXT: TEXT: Words may be quoted with the characters " (double quote), 'TEXT: H (single quote), and ` (back quote). A word enclosed by anyTEXT: H of these quotes may contain white space. A string enclosedTEXT: H by double quotes may have further special-character substi-TEXT: H tutions done on it, but it will be considered one word byTEXT: H the program. A number so quoted is considered a string. ATEXT: H string enclosed by single quotes also has all its specialTEXT: H characters protected. Thus no glob expansion (*, ?, etc),TEXT: H variable expansion ($), or history substitution (^, !) willTEXT: H be done. Numbers are still considered numbers though. ATEXT: H string enclosed by backquotes is considered a command to theTEXT: H shell and is executed, and the output of the commandTEXT: H repalaces the text. Obviously the command should not gen-TEXT: H erate too much output. This only works on UNIX systems.TEXT: HTEXT: SUBJECT: semiTITLE: Multiple CommandsTEXT: TEXT: More than one command may be put on one line, seperated byTEXT: H semicolins (;). The semicolins must be isolated by whiteTEXT: H space, however. Thus a multi-command alias might be writtenTEXT: H _a_l_i_a_s _w_o_r_d '_c_o_m_m_a_n_d_1 ; _c_o_m_m_a_n_d_2 ; ...'.TEXT: HTEXT: SUBJECT: unixcomcommTITLE: UNIX CommandsTEXT: TEXT: If the variable Gunixcom His set and the operating system isTEXT: H BSD UNIX, commands which are not built-ins are consideredTEXT: H UNIX commands and executed as if the program were a shell.TEXT: H However, using this option increases the start-up time ofTEXT: H the program a lot. Probably Gspice Hshould not be used as aTEXT: H login shell.TEXT: HTEXT: SEEALSO: NUTMEG:unixcomSEEALSO: NUTMEG:commandsSUBJECT: variablesubTITLE: Variable SubstitutionTEXT: TEXT: The values of variables may be used in commands by writingTEXT: H G$varname Hwhere the value of the variable is to appear. TheTEXT: H special variables $$ and $< refer to the process ID of theTEXT: H program and a line of input which is read from the terminalTEXT: H when the variable is evaluated, respectively. If a variableTEXT: H has a name of the form $&_w_o_r_d, then _w_o_r_d is considered aTEXT: H vector, and its value is taken to be the value of the vari-TEXT: H able. If $_f_o_o is a valid variable, and is of type GlistH,TEXT: H then the expression $_f_o_o[_l_o_w-_h_i
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -