A NOTE has been added to this issue. ====================================================================== https://www.austingroupbugs.net/view.php?id=1957 ====================================================================== Reported By: Love4Boobies Assigned To: ====================================================================== Project: 1003.1(2024)/Issue8 Issue ID: 1957 Category: Shell and Utilities Type: Enhancement Request Severity: Editorial Priority: normal Status: New Name: Bogdan Barbu Organization: User Reference: Section: ex, vi Page Number: N/A Line Number: N/A Interp Status: --- Final Accepted Text: ====================================================================== Date Submitted: 2025-11-12 05:03 UTC Last Modified: 2025-12-11 16:19 UTC ====================================================================== Summary: Standardize the -u option for ex/vi ======================================================================
---------------------------------------------------------------------- (0007334) geoffclare (manager) - 2025-12-11 16:19 https://www.austingroupbugs.net/view.php?id=1957#c7334 ---------------------------------------------------------------------- On page 2838 line 94174 section ex (SYNOPSIS), change: <blockquote><pre>[-t <i>tagstring</i>] [-w <i>size</i>]</pre></blockquote> to: <blockquote><pre>[-t <i>tagstring</i>] [-u <i>rcfile</i>] [-w <i>size</i>]</pre></blockquote> On page 2839 line 94218 section ex (OPTIONS), after: <blockquote>Suppress the use of the <i>EXINIT</i> environment variable and the reading of any <b>.exrc</b> file; see the EXTENDED DESCRIPTION section.</blockquote> add a sentence: <blockquote>If the <b>-u</b> <i>rcfile</i> option is also specified, the use of the specified <i>rcfile</i> shall not be suppressed.</blockquote> After page 2839 line 94224 section ex (OPTIONS), add: <blockquote><b>-u</b> <i>rcfile</i> <blockquote>Use the commands in the file specified by the pathname <i>rcfile</i> for initializations; suppress the use of the <i>EXINIT</i> environment variable and the reading of any <b>.exrc</b> file (see the EXTENDED DESCRIPTION section). If <i>rcfile</i> has the value <b>NONE</b> or the value <b>NORC</b>, no initialization commands shall be executed. If the <b>-u</b> <i>rcfile</i> option is specified multiple times, only the last one specified shall take effect.</blockquote></blockquote> On page 2839 line 94242 section ex (INPUT FILES), change: <blockquote>The <b>.exrc</b> files and source files shall be text files consisting of <i>ex</i> commands; see ...</blockquote> to: <blockquote>The <b>.exrc</b> files, a file specified with the <b>-u</b> <i>rcfile</i> option, and files specified with a <b>:source</b> command shall be text files consisting of <i>ex</i> commands; see ...</blockquote> On page 2843 line 94409 section ex (EXTENDED DESCRIPTION), change: <blockquote>If the environment variable <i>EXINIT</i> is set, the editor shall execute ...</blockquote> to: <blockquote>If the environment variable <i>EXINIT</i> is set and the <b>-u</b> <i>rcfile</i> option is not specified, the editor shall execute ...</blockquote> On page 2843 line 94411 section ex (EXTENDED DESCRIPTION), change: <blockquote>If the <i>EXINIT</i> variable is not set, and all of the following are true</blockquote> to: <blockquote>If the <i>EXINIT</i> variable is not set, the <b>-u</b> <i>rcfile</i> option is not specified, and all of the following are true</blockquote> On page 2843 line 94419 section ex (EXTENDED DESCRIPTION), change: <blockquote>If and only if all of the following are true</blockquote> to: <blockquote>If and only if the <b>-u</b> <i>rcfile</i> option is not specified and all of the following are true</blockquote> After page 2844 line 94429 section ex (EXTENDED DESCRIPTION), add: <blockquote>4. <blockquote>If the <b>-u</b> <i>rcfile</i> option is specified and <i>rcfile</i> has neither the value <b>NONE</b> nor the value <b>NORC</b>, the editor shall attempt to execute the <i>ex</i> commands contained in the file specified by the pathname <i>rcfile</i>.</blockquote></blockquote> On page 2844 line 94430 section ex (EXTENDED DESCRIPTION), change: <blockquote>Lines in any <b>.exrc</b> file that are blank lines shall be ignored.</blockquote> to: <blockquote>Lines in any <b>.exrc</b> file, or a file specified using <b>-u</b> <i>rcfile</i>, that are blank lines shall be ignored.</blockquote> On page 2844 line 94432 section ex (EXTENDED DESCRIPTION), change: <blockquote>After the <i>EXINIT</i> variable and any <b>.exrc</b> files are processed ...</blockquote> to: <blockquote>After the <i>EXINIT</i> variable and any <b>.exrc</b> files or a file specified using <b>-u</b> <i>rcfile</i> are processed ...</blockquote> On page 2849 line 94684 section ex (EXTENDED DESCRIPTION), change: <blockquote>Otherwise, if the <i>ex</i> command resulted from the processing of an <i>EXINIT</i> environment variable, a <b>.exrc</b> file, a <b>:source</b> command, ...</blockquote> to: <blockquote>Otherwise, if the <i>ex</i> command resulted from the processing of an <i>EXINIT</i> environment variable, a <b>.exrc</b> file, a <b>-u</b> <i>rcfile</i> option, a <b>:source</b> command, ...</blockquote> On page 3526 line 120384 section vi (SYNOPSIS), change: <blockquote><pre>[-t <i>tagstring</i>] [-w <i>size</i>]</pre></blockquote> to: <blockquote><pre>[-t <i>tagstring</i>] [-u <i>rcfile</i>] [-w <i>size</i>]</pre></blockquote> After page 3526 line 120411 section vi (OPTIONS), add: <blockquote><b>-u</b> <i>rcfile</i> <blockquote>See the <i>ex</i> command description of the <b>-u</b> option.</blockquote></blockquote> Issue History Date Modified Username Field Change ====================================================================== 2025-11-12 05:03 Love4Boobies New Issue 2025-12-11 16:19 geoffclare Note Added: 0007334 ======================================================================
