Skip to content

Commit 0cc091f

Browse files
committed
Keep that in mind
1 parent 3d07fe6 commit 0cc091f

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## Some `Bash` coding conventions and good practices.
22

33
Coding conventions are... just conventions.
4-
It helps to have a little fun with scripting,
4+
They help to have a little fun with scripting,
55
not to create new war/bias conversations.
66

77
Feel free to break the rules any time you can; it's important
@@ -23,6 +23,7 @@ And it's also important to have a consistent way in your scripts.
2323
* [Set -u](#set--u)
2424
* [Set -e](#set--e)
2525
* [Techniques](#techniques)
26+
* [Keep that in mind](#keep-that-in-mind)
2627
* [A little tracing](#a-little-tracing)
2728
* [Making your script a library](#making-your-script-a-library)
2829
* [Quick self-doc](#quick-self-doc)
@@ -297,6 +298,15 @@ For more details about `set -e`, please read
297298

298299
## Techniques
299300

301+
### Keep that in mind
302+
303+
There are lot of shell scripts that don't come with (unit)tests.
304+
It's just not very easy to write tests. Please keep that in mind:
305+
Writing shell scripts is more about dealing with runtime and side effects.
306+
307+
It's very hard to refactor shell scripts.
308+
Be prepared, and don't hate bash/shell scripts too much ;)
309+
300310
### A little tracing
301311

302312
It would be very helpful if you can show in your script logs some tracing

0 commit comments

Comments
 (0)