Skip to content

Commit fd0a4ae

Browse files
committed
Add Links
1 parent a2422e8 commit fd0a4ae

File tree

2 files changed

+47
-39
lines changed

2 files changed

+47
-39
lines changed

README.adoc

+45-36
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
:url-goredo: http://www.goredo.cypherpunks.ru/Install.html
1313
:url-goredoer: https://github.com/rdavid/goredoer
1414
:url-redo: http://cr.yp.to/redo.html
15+
:url-sh0: http://www.etalabs.net/sh_tricks.html
16+
:url-sh1: https://mywiki.wooledge.org/SignalTrap
17+
:url-sh2: https://www.grymoire.com/Unix/Sh.html
1518
:url-shellcheck: https://github.com/koalaman/shellcheck
1619
:url-shfmt: https://github.com/mvdan/sh
1720
:url-toolbox: https://github.com/rdavid/toolbox
@@ -70,41 +73,41 @@ The public functions are, in alphabetical order:
7073
{url-base}#L250[`grbt`],
7174
{url-base}#L262[`handle_pipefails`],
7275
{url-base}#L268[`heic2jpg`],
73-
{url-base}#L283[`inside`],
74-
{url-base}#L290[`isempty`],
75-
{url-base}#L314[`isfunc`],
76-
{url-base}#L327[`isnumber`],
77-
{url-base}#L335[`isreadable`],
78-
{url-base}#L344[`issolid`],
79-
{url-base}#L378[`iswritable`],
80-
{url-base}#L392[`log`],
81-
{url-base}#L401[`loge`],
82-
{url-base}#L409[`logw`],
83-
{url-base}#L418[`map_del`],
84-
{url-base}#L438[`map_get`],
85-
{url-base}#L460[`map_put`],
86-
{url-base}#L472[`pdf2jpg`],
87-
{url-base}#L482[`pdf2png`],
88-
{url-base}#L506[`prettytable`],
89-
{url-base}#L532[`prettyuptime`],
90-
{url-base}#L555[`realdir`],
91-
{url-base}#L564[`realpath`],
92-
{url-base}#L577[`semver`],
93-
{url-base}#L593[`timestamp`],
94-
{url-base}#L613[`tolog`],
95-
{url-base}#L619[`tologe`],
96-
{url-base}#L626[`tolower`],
97-
{url-base}#L644[`totsout`],
98-
{url-base}#L650[`tsout`],
99-
{url-base}#L658[`url_exists`],
100-
{url-base}#L682[`user_exists`],
101-
{url-base}#L698[`validate_cmd`],
102-
{url-base}#L705[`validate_var`],
103-
{url-base}#L712[`var_exists`],
104-
{url-base}#L734[`ver_ge`],
105-
{url-base}#L742[`vid2aud`],
106-
{url-base}#L758[`yes_to_continue`],
107-
{url-base}#L809[`ytda`].
76+
{url-base}#L282[`inside`],
77+
{url-base}#L289[`isempty`],
78+
{url-base}#L313[`isfunc`],
79+
{url-base}#L326[`isnumber`],
80+
{url-base}#L334[`isreadable`],
81+
{url-base}#L343[`issolid`],
82+
{url-base}#L377[`iswritable`],
83+
{url-base}#L391[`log`],
84+
{url-base}#L400[`loge`],
85+
{url-base}#L408[`logw`],
86+
{url-base}#L417[`map_del`],
87+
{url-base}#L437[`map_get`],
88+
{url-base}#L459[`map_put`],
89+
{url-base}#L471[`pdf2jpg`],
90+
{url-base}#L481[`pdf2png`],
91+
{url-base}#L505[`prettytable`],
92+
{url-base}#L531[`prettyuptime`],
93+
{url-base}#L554[`realdir`],
94+
{url-base}#L563[`realpath`],
95+
{url-base}#L576[`semver`],
96+
{url-base}#L592[`timestamp`],
97+
{url-base}#L612[`tolog`],
98+
{url-base}#L618[`tologe`],
99+
{url-base}#L625[`tolower`],
100+
{url-base}#L643[`totsout`],
101+
{url-base}#L649[`tsout`],
102+
{url-base}#L657[`url_exists`],
103+
{url-base}#L681[`user_exists`],
104+
{url-base}#L697[`validate_cmd`],
105+
{url-base}#L704[`validate_var`],
106+
{url-base}#L711[`var_exists`],
107+
{url-base}#L733[`ver_ge`],
108+
{url-base}#L741[`vid2aud`],
109+
{url-base}#L757[`yes_to_continue`],
110+
{url-base}#L808[`ytda`].
108111

109112
Global variables have `BASE_` prefix and clients could use them.
110113
Clients should place temporary files under `$BASE_WIP`.
@@ -174,7 +177,7 @@ eval "$(
174177
log I\'m using the shellbase.
175178
----
176179

177-
{url-base}#L506[`prettytable`] example:
180+
{url-base}#L505[`prettytable`] example:
178181

179182
[,sh]
180183
----
@@ -211,6 +214,12 @@ You can install Sergey Matveev's {url-goredo}[`goredo`] implementation.
211214
It uses {url-cv}[David Rabkin]'s {url-goredoer}[`goredoer`] to build
212215
{url-goredo}[`goredo`].
213216

217+
== Links
218+
219+
- {url-sh0}[Rich’s sh (POSIX shell) tricks]
220+
- {url-sh1}[Sending and Trapping Signals]
221+
- {url-sh2}[Sh - the POSIX Shell]
222+
214223
== License
215224

216225
`shellbase` is copyright {url-cv}[David Rabkin] and available under a

lib/base.sh

+2-3
Original file line numberDiff line numberDiff line change
@@ -277,9 +277,8 @@ heic2jpg() {
277277
# echo $1 | grep -qs "$2"
278278
# or expr:
279279
# expr "$1" : ".*$2" >/dev/null && return 0 # true
280-
# but case does not require another shell process.
281-
# From here:
282-
# https://www.grymoire.com/Unix/Sh.html
280+
# but case does not require another shell process. See:
281+
# https://www.grymoire.com/Unix/Sh.html#toc-uh-96
283282
inside() {
284283
case "$1" in *$2*) return 0 ;; esac
285284
return 1

0 commit comments

Comments
 (0)