View Issue Details

IDProjectCategoryView StatusLast Update
00012511003.1(2016/18)/Issue7+TC2Shell and Utilitiespublic2024-06-11 09:08
Reportermohd_akram Assigned To 
PrioritynormalSeverityEditorialTypeError
Status ClosedResolutionAccepted As Marked 
NameMohamed Akram
Organization
User Reference
Sectionex
Page Number2713-2733
Line Number88687-89455
Interp Status---
Final Accepted Text0001251:0004457
Summary0001251: ex(1): formatting issues in command arguments
DescriptionMany of the commands in the ex section are missing spaces between their arguments. This is confusing as spaces are allowed and often required.

The grouping of the substitute command seems to disallow calling it with only options, count or flags.

The ! command also mentions addr instead of 2addr which seems like a mistake.
Desired ActionImplement the following changes. Headings are page numbers. Lines shown are the before and after.

Space changes:

-- 2713

88687 Synopsis: ab[breviate][lhs rhs]
88687 Synopsis: ab[breviate] [lhs rhs]

-- 2714

88731 Synopsis: [2addr] c[hange][!][count]
88731 Synopsis: [2addr] c[hange][!] [count]

88742 Synopsis: chd[ir][!][directory]
88742 Synopsis: chd[ir][!] [directory]

88743 cd[!][directory]
88743 cd[!] [directory]

-- 2715

88761 Synopsis: [2addr] d[elete][buffer][count][flags]
88761 Synopsis: [2addr] d[elete] [buffer] [count] [flags]

88770 Synopsis: e[dit][!][+command][file]
88770 Synopsis: e[dit][!] [+command] [file]

88771 ex[!][+command][file]
88771 ex[!] [+command] [file]

-- 2716

88802 Synopsis: f[ile][file]
88802 Synopsis: f[ile] [file]

-- 2717

88864 Synopsis: [2addr] j[oin][!][count][flags]
88864 Synopsis: [2addr] j[oin][!] [count] [flags]

-- 2718

88896 Synopsis: [2addr] l[ist][count][flags]
88896 Synopsis: [2addr] l[ist] [count] [flags]

88898 [2addr] p[rint][count] l[flags]
88898 [2addr] p[rint] [count] l[flags]

88901 Synopsis: map[!][lhs rhs]
88901 Synopsis: map[!] [lhs rhs]

-- 2721

88999 Synopsis: n[ext][!][+command][file ...]
88999 Synopsis: n[ext][!] [+command] [file ...]

-- 2722

89023 Synopsis: [2addr] nu[mber][count][flags]
89023 Synopsis: [2addr] nu[mber] [count] [flags]

89024 [2addr] #[count][flags]
89024 [2addr] # [count] [flags]

89026 [2addr] p[rint][count] #[flags]
89026 [2addr] p[rint] [count] #[flags]

89051 Synopsis: [2addr] p[rint][count][flags]
89051 Synopsis: [2addr] p[rint] [count] [flags]

-- 2723

89074 Synopsis: [1addr] pu[t][buffer]
89074 Synopsis: [1addr] pu[t] [buffer]

89089 Synopsis: [1addr] r[ead][!][file]
89089 Synopsis: [1addr] r[ead][!] [file]

-- 2725

89144 Synopsis: se[t][option[=[value]] ...][nooption ...][option? ...][all]
89144 Synopsis: se[t] [option[=[value]] ...] [nooption ...] [option? ...] [all]

-- 2729

89288 Synopsis: [1addr] vi[sual][type][count][flags]
89288 Synopsis: [1addr] vi[sual] [type] [count] [flags]

89309 Synopsis: [2addr] w[rite][!][>>][file]
89309 Synopsis: [2addr] w[rite][!] [>>] [file]

89310 [2addr] w[rite][!][file]
89310 [2addr] w[rite][!] [file]

89311 [2addr] wq[!][>>][file]
89311 [2addr] wq[!] [>>] [file]

-- 2730

89352 Synopsis: [2addr] x[it][!][file]
89352 Synopsis: [2addr] x[it][!] [file]

-- 2731

89360 Synopsis: [2addr] ya[nk][buffer][count]
89360 Synopsis: [2addr] ya[nk] [buffer] [count]

89366 Synopsis: [1addr] z[!][type ...][count][flags]
89366 Synopsis: [1addr] z[!] [type ...] [count] [flags]

-- 2733

89444 Synopsis: [2addr] <[< ...][count][flags]
89444 Synopsis: [2addr] <[< ...] [count] [flags]

89455 Synopsis: [2addr] >[> ...][count][flags]
89455 Synopsis: [2addr] >[> ...] [count] [flags]

Space + other changes:

-- 2725

89171 Synopsis: [2addr] s[ubstitute][/pattern/repl/[options][count][flags]]
89171 Synopsis: [2addr] s[ubstitute] [/pattern/repl/] [options] [count] [flags]

89172 [2addr] &[options][count][flags]]
89172 [2addr] & [options] [count] [flags]

89173 [2addr] ~[options][count][flags]]
89173 [2addr] ~ [options] [count] [flags]

-- 2732

89414 [addr]! command
89414 [2addr] ! command
Tagstc3-2008

Activities

geoffclare

2019-05-17 11:06

manager   bugnote:0004399

I don't think the line 89171-3 changes are correct. There are no spaces needed in:

  s/pat/repl/g

  &g

  ~g

so I think the changes should be:

89171 Synopsis: [2addr] s[ubstitute][/pattern/repl/[options][count][flags]]
89171 Synopsis: [2addr] s[ubstitute][/pattern/repl/][options] [count] [flags]

89172 [2addr] &[options][count][flags]]
89172 [2addr] &[options] [count] [flags]

89173 [2addr] ~[options][count][flags]]
89173 [2addr] ~[options] [count] [flags]

geoffclare

2019-06-28 11:04

manager   bugnote:0004457

Last edited: 2019-07-01 15:57

Having read through the description of command line parsing on P2705-2708 and particularly the paragraph starting at P2707 L88471, I believe the only changes needed are:

Space changes:

-- 2715

88761 Synopsis: [2addr] d[elete][buffer][count][flags]
88761 Synopsis: [2addr] d[elete][ buffer][count][flags]

-- 2723

89074 Synopsis: [1addr] pu[t][buffer]
89074 Synopsis: [1addr] pu[t][ buffer]

-- 2725

89144 Synopsis: se[t][option[=[value]] ...][nooption ...][option? ...][all]
89144 Synopsis: se[t][ option[=[value]]]...[ nooption]...[ option?]...[ all]

Add after line 89155 "Arguments can appear in any order and shall be processed in the specified order."

-- 2731

89360 Synopsis: [2addr] ya[nk][buffer][count]
89360 Synopsis: [2addr] ya[nk][ buffer][count]


Space + other changes:

-- 2725

89171 Synopsis: [2addr] s[ubstitute][/pattern/repl/[options][count][flags]]
89171 Synopsis: [2addr] s[ubstitute][/pattern/repl/][options][count][flags]

89173 [2addr] ~[options][count][flags]]
89173 [2addr] ~[options][count][flags]

-- 2732

89414 [addr]! command
89414 [2addr] ! command

Issue History

Date Modified Username Field Change
2019-05-16 22:29 mohd_akram New Issue
2019-05-16 22:29 mohd_akram Name => Mohamed Akram
2019-05-16 22:29 mohd_akram Section => ex
2019-05-16 22:29 mohd_akram Page Number => 2713-2733
2019-05-16 22:29 mohd_akram Line Number => 88687-89455
2019-05-17 11:06 geoffclare Note Added: 0004399
2019-06-28 11:04 geoffclare Note Added: 0004457
2019-07-01 15:57 geoffclare Note Edited: 0004457
2019-07-01 15:58 geoffclare Interp Status => ---
2019-07-01 15:58 geoffclare Final Accepted Text => 0001251:0004457
2019-07-01 15:58 geoffclare Status New => Resolved
2019-07-01 15:58 geoffclare Resolution Open => Accepted As Marked
2019-07-01 15:58 geoffclare Tag Attached: tc3-2008
2019-11-19 16:26 geoffclare Status Resolved => Applied
2024-06-11 09:08 agadmin Status Applied => Closed