-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenhancements.txt
More file actions
134 lines (101 loc) · 3.88 KB
/
Copy pathenhancements.txt
File metadata and controls
134 lines (101 loc) · 3.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
## help-alias.sh
#+
#+
#+ Special to this script.
#+
#+ 0) New commandline option, \-l\, list help topics.
- search opt_strings for \-[Ll]\
- define opt-strings
#+ 1) Any lengthy output is piped into \more -e\ for readability.
- centralize any execution of builtin \help\ and pipe it into
\more -e\.
#+ 2) Output of multiple \help\ topic descriptions, in \help\ format or
#+ in man page format, are formatted to be more easily readable.
#+ In particular, there\s vertical white space and a horizonatal
#+ deliniator (\#####\) between topics and index numbers per topic.
- process output of builtin \help\
- based on what?
- \--\ and no short options produces help topic
content.
- \-m\ produces man page formatting
- how?
- use awk to insert formatting depending on
default output of builtin \help\?
- is possible
- isolate each operand input and execute
each of them separately then
concatenate multiple outputs?
- probably slower.
- \builtin help -d e\ lists x6 topics.
#+ 3) Input strings \-h\, \-H\ and \-?\ are recognized as synonymous
#+ with \--help\, and the help message for builtin \help\ is
#+ printed.
- search opt_strings for \-[Hh\?]\
- define opt-strings
#+ 4) Input strings \-v\ and \-V\ are recognized as synonymous with
#+ \--version\ and the version information for the on-disk version
#+ of the Bash system binary is printed.
- search opt_strings for \-[Vv]\
- define opt-strings
#+ 5) A semi-persistent data file, "${TMPDIR}/.bash_help_topics" is used.
#+ It is renewed based on age or inaccuracy.
- implementation complete
#+ 6) Information for any current list of help topics is based on any
#+ current ouptut of builtin \help\ (ie, \compgen\ is not used).
- implementation complete
- only use if \compgen\ is NA.
- Get topics list from \compgen\.
#+ 7) Add additional info search suggestions when the output from the
#+ \help\ builtin reads, \no help topics match\.
- based on what?
- \--\ and no short options produces help topic
content.
- \-m\ produces man page formatting
- how?
- use awk to insert formatting depending on
default output of builtin \help\?
- is possible
#+ ) Search topics according to regexp, rather than according to shell
#+ shell pattern.
#! -- sb an option. the default sb available. search by regexp is
#! an accident of using awk.
- based on what?
- user configuration.
- how?
- implement both
- careful observation is necessary of the
behavior of the existing \help\
builtin.
#+ ) The outputs of \help -d\ and \help -s\ are lists of desrcriptions
#+ and summaries, respectively, rather than the default output page.
- based on what
- \operands
- how?
- call each relevant help topic individually?
- would require processing of operands
- prep a list of all outputs for both \-d\ and
\-s\ and simply \grep\ them?
- if the output is created once, why not
save it?
#+ ) Remove useless information that is printed when the output from
#+ the \help\ builtin reads, \no help topics match\, specifically
#+ strings like \man -k -\ (re punctuation and or or two
#+ character strings).
#+ ) process multiple opt_strings simultaneously?
- how are malformed inputs detected?
- input validation
- filter out command codes and other non-graphical ASCII
sequences.
#+ ) Ability to enable / disable any one enhancement individually.
#+
#+
#+
#+ Special to my style of scripting.
#+
#+ ) Xtrace shows line number where logic thread left main section
#+ of script.
#+ ) Arguments to binary \rm\ are coded as a single array for consistency.
#+ WY) All data is saved on disk in an temporary directory. All temporary
#+ directories are deleted at the end of each script execution.
#+ ) "${Halt:?}" is used.
#+