
ex(1) | ex(1) |
| current indicator line shall be affected by the editor options, autowrite and wri- |
| teany. |
set | se[t] [all] |
| se[t] |
| se[t] |
| se[t] |
| se[t] |
| se[t] |
| Set and display the values of the editor options (see Editor Options below). |
| With no arguments, the command prints those editor options whose values have been |
| changed from the default settings. If all is speci®ed, it prints all current option |
| values. |
| The second and third forms display the current value of the speci®ed option. The ? is |
| necessary only for Boolean options. |
| The fourth form turns a Boolean option on. The ®fth form turns a Boolean option off. |
| The sixth form assigns values to string and numeric options. Spaces and tabs in strings |
| must be escaped with a leading backslash (\). |
| The last ®ve forms can be combined; interpretation is |
shell | sh[ell] |
| Execute the command interpreter speci®ed by the shell editor option (see Editor |
| Options below). Editing is resumed when you exit from the command interpreter. |
source | so[urce] ®le |
| Read and execute commands from the speci®ed ®le. so commands can be nested. The |
| maximum supported nesting depths is implementation de®ned, but shall be at least one. |
substitute | range s[ubstitute] /re/repl/ options count ¯ags |
| range s options count ¯ags |
| range & options count ¯ags |
| range sr options count ¯ags |
| range Ä options count ¯ags |
| range s\?repl |
| range s\&repl |
| On each speci®ed line, the ®rst instance of the pattern re is replaced by the string repl. |
| (See Regular Expressions and Replacement Strings above.) Any character other than a |
| letter or a digit can be used to delimit the pattern instead of the /. |
| If you include the g (global) option, all instances of the pattern in the line are substi- |
| tuted. |
| If you include the c (con®rm) option, you are queried about whether to perform each |
| individual substitution, as follows: Before each substitution the line is displayed with |
| the pattern to be replaced marked underneath with carets (Ã). Type y to cause the sub- |
| stitution to be performed; any other input to abort it. The last line substituted becomes |
| the current line. |
| If the substitution pattern re is omitted (s//repl/), the more recently set of either the |
| substitution string or the scanning string is used (see Regular Expressions above). |
| If the s or & forms of the command are used, the substitution pattern defaults to the |
| previous substitution string and the replacement string defaults to the previous replace- |
| ment string used. |
| If the sr or Ä forms of the command are used, the substitution pattern defaults to the |
| more recently set of either the substitution string or the scanning string and the |
| replacement string defaults to the previous replacement string used. |
| The form s\?repl is equivalent to |
| ning string. |
e
− 9 − | Section 1−249 |