Skip to content

Commit 2981cf2

Browse files
committed
go-script-bash v1.1.1
1 parent 187715e commit 2981cf2

File tree

3 files changed

+12
-295
lines changed

3 files changed

+12
-295
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,8 @@ scripts can be in any other interpreted language.__
195195
First you'll need a copy of this framework available in your project sources.
196196
Archives are available at:
197197

198-
- https://github.com/mbland/go-script-bash/archive/v1.1.0.tar.gz
199-
- https://github.com/mbland/go-script-bash/archive/v1.1.0.zip
198+
- https://github.com/mbland/go-script-bash/archive/v1.1.1.tar.gz
199+
- https://github.com/mbland/go-script-bash/archive/v1.1.1.zip
200200

201201
You can also add this repository to your project as a [`Git
202202
submodule`](https://git-scm.com/book/en/v2/Git-Tools-Submodules):

RELEASE.md

Lines changed: 9 additions & 292 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# go-script-bash v1.1.0
1+
# go-script-bash v1.1.1
22

3-
This release adds some major new features, two new builtin commands, and multiple bug fixes and internal improvements.
3+
This is a bugfix release.
44

55
## The `./go` script: a unified development environment interface
66

@@ -16,299 +16,16 @@ This software is made available as [Open Source software](https://opensource.org
1616

1717
## What's new in this release
1818

19-
### Modules
19+
### log: Replace `echo -e` with `printf`
2020

21-
You can import optional Bash library code from the core framework, third-party plugins, or your own project's scripts directory by sourcing the `_GO_USE_MODULES` script. See the **Modules** section of the README or run `./go help modules` and `./go modules --help` for more information.
21+
On at least one macOS 10.12.1 installation, `echo -e` under Bash 3.2.57(1)-release in Terminal.app wasn't converting `\e` sequences to actual ANSI escape sequences. Using `printf` instead resolves the issue.
2222

23-
### Logging
24-
25-
The core library `log` module provides functions for standard logging facilities. For more information, see the **Logging** section from the README and run `./go modules --help log`.
26-
27-
### Bats test assertions and helpers
28-
29-
The assertions and helpers from the test suite have been extracted into the `lib/bats/assertions` and `lib/bats/helpers` libraries. See the **Bats test assertions and helpers** section from the README and read the comments from each file for more information.
30-
31-
### `kcov-ubuntu` module for test coverage on Linux
32-
33-
The `kcov-ubuntu` module provides the `run_kcov` function that uses [kcov](https://github.com/SimonKagstrom/kcov) to collect test coverage on Ubuntu Linux. See the **`kcov-ubuntu` module for test coverage on Linux** section of the README and run `./go modules --help kcov-ubuntu` for more information.
34-
35-
### Exported `_GO_*` variables and the `vars` builtin command
36-
37-
A number of global variables starting with the prefix `_GO_*` are exported as environment variables and are available to command scripts in all languages. See the **Command script API** section from the README and run `./go help vars` for more information.
38-
39-
## Changes since v1.0.0
23+
## Changes since v1.1.0
4024

4125
<pre>
42-
9411a89 Mike Bland <mbland@acm.org>
43-
Merge pull request #23 from mbland/version
44-
45-
e8ef35b Mike Bland <mbland@acm.org>
46-
core: Introduce _GO_CORE_VERSION
47-
48-
17a69d2 Mike Bland <mbland@acm.org>
49-
Add documentation improvements for v1.1.0 release
50-
51-
ecd2d81 Mike Bland <mbland@acm.org>
52-
use: Unset correct variable
53-
54-
006c38b Mike Bland <mbland@acm.org>
55-
Merge pull request #22 from mbland/remove-stale-files
56-
57-
e17c181 Mike Bland <mbland@acm.org>
58-
Remove old test `./go` scripts
59-
60-
f9675e5 Mike Bland <mbland@acm.org>
61-
Merge pull request #21 from mbland/plugins
62-
63-
33c54b6 Mike Bland <mbland@acm.org>
64-
plugins: Revert changes from #20
65-
66-
ce20155 Mike Bland <mbland@acm.org>
67-
Merge pull request #20 from mbland/vars
68-
69-
6b376eb Mike Bland <mbland@acm.org>
70-
vars: Make test array quotifying more robust
71-
72-
241d2c7 Mike Bland <mbland@acm.org>
73-
Revamp `_GO_*` var exports, add `vars` builtin
74-
75-
7c1123b Mike Bland <mbland@acm.org>
76-
Move all _GO_* vars to core and document them
77-
78-
17beb1e Mike Bland <mbland@acm.org>
79-
Merge pull request #19 from mbland/assert-lines-equal
80-
81-
70d546f Mike Bland <mbland@acm.org>
82-
assertions: Add assert_lines_equal
83-
84-
32d47fc Mike Bland <mbland@acm.org>
85-
changes: Don't add `^` to end ref
86-
87-
580f08d Mike Bland <mbland@acm.org>
88-
core: Tweak COLUMNS test slightly
89-
90-
47b6e63 Mike Bland <mbland@acm.org>
91-
Merge pull request #18 from mbland/columns
92-
93-
5292839 Mike Bland <mbland@acm.org>
94-
core: Fix test for OS X on Travis without /dev/tty
95-
96-
c7ee892 Mike Bland <mbland@acm.org>
97-
core: Reproduce and fix `tput cols` error from #17
98-
99-
664a51f Mike Bland <mbland@acm.org>
100-
Merge pull request #17 from mbland/columns
101-
102-
5bdbd2c Mike Bland <mbland@acm.org>
103-
core: Update how COLUMNS is set
104-
105-
5fc49a5 Mike Bland <mbland@acm.org>
106-
log: Skip setup-project test case on MSYS2
107-
108-
0e91281 Mike Bland <mbland@acm.org>
109-
Merge pull request #16 from mbland/log-setup
110-
111-
ecb6b83 Mike Bland <mbland@acm.org>
112-
log: Fix @go.critical_section_end return bug
113-
114-
b7f7699 Mike Bland <mbland@acm.org>
115-
log: Add @go.setup_project function
116-
117-
ed05f2b Mike Bland <mbland@acm.org>
118-
Merge pull request #15 from mbland/log-command
119-
120-
da20203 Mike Bland <mbland@acm.org>
121-
log: Add log_command tests for @go command cases
122-
123-
db79ba1 Mike Bland <mbland@acm.org>
124-
log: Add @go.log_command, critical section flag
125-
126-
43fae60 Mike Bland <mbland@acm.org>
127-
Merge pull request #14 from mbland/add-or-update-log-level
128-
129-
949fb32 Mike Bland <mbland@acm.org>
130-
log: Implement @go.add_or_update_log_level
131-
132-
dd712c6 Mike Bland <mbland@acm.org>
133-
Merge pull request #13 from mbland/log
134-
135-
0a7bc5e Mike Bland <mbland@acm.org>
136-
lib/log: Add logging module
137-
138-
31a1d30 Mike Bland <mbland@acm.org>
139-
complete: Fix typo in internal library comment
140-
141-
3cc22b0 Mike Bland <mbland@acm.org>
142-
Merge pull request #12 from mbland/assertions
143-
144-
0d94845 Mike Bland <mbland@acm.org>
145-
Revert previous two commits
146-
147-
f4a0f85 Mike Bland <mbland@acm.org>
148-
assertions: Reset return trap when trap exits
149-
150-
7ca3d05 Mike Bland <mbland@acm.org>
151-
assertions: Introduce bats_assertion_return_trap
152-
153-
40d6218 Mike Bland <mbland@acm.org>
154-
assertions: Make public return_from_bats_assertion
155-
156-
87bb07c Mike Bland <mbland@acm.org>
157-
assertions: Reproduce and fix latent functrace bug
158-
159-
52bc541 Mike Bland <mbland@acm.org>
160-
Merge pull request #11 from mbland/complete
161-
162-
112e046 Mike Bland <mbland@acm.org>
163-
env/bash: Put single quotes around unset argument
164-
165-
e7f02fe Mike Bland <mbland@acm.org>
166-
complete: Eliminate compgen from internal library
167-
168-
096f0f3 Mike Bland <mbland@acm.org>
169-
bats/assertions: Change double quotes to single
170-
171-
d8e4231 Mike Bland <mbland@acm.org>
172-
complete: Replace most compgen calls with echo
173-
174-
4d61457 Mike Bland <mbland@acm.org>
175-
complete: Switch all tests to use ./go complete
176-
177-
54e8e9a Mike Bland <mbland@acm.org>
178-
Merge pull request #10 from mbland/tput-fix-test-docs
179-
180-
e779deb Mike Bland <mbland@acm.org>
181-
test: Expand comments, refactor slightly
182-
183-
b9792bf Mike Bland <mbland@acm.org>
184-
kcov-ubuntu: Update run_kcov function comment
185-
186-
4c66893 Mike Bland <mbland@acm.org>
187-
core: Undo tput error redirect
188-
189-
676dd18 Mike Bland <mbland@acm.org>
190-
Merge pull request #9 from mbland/bats-libs
191-
192-
69fb63b Mike Bland <mbland@acm.org>
193-
bats/assertions: Reorder functions, add docs
194-
195-
d692bb9 Mike Bland <mbland@acm.org>
196-
bats/assertions: Add optional fail() reason, docs
197-
198-
ac8ed3f Mike Bland <mbland@acm.org>
199-
tests: Extract public bats/assertions module
200-
201-
2707493 Mike Bland <mbland@acm.org>
202-
tests: Consolidate environment.bash
203-
204-
c77932e Mike Bland <mbland@acm.org>
205-
kcov: Convert to public kcov-ubuntu module
206-
207-
1a47920 Mike Bland <mbland@acm.org>
208-
cmd-desc: Remove create_test_command_script calls
209-
210-
3deee25 Mike Bland <mbland@acm.org>
211-
run-cmd: Update _GO_* var tests to run subcommands
212-
213-
4168b58 Mike Bland <mbland@acm.org>
214-
Extract public bats/helpers module
215-
216-
87ce40a Mike Bland <mbland@acm.org>
217-
Merge pull request #8 from mbland/cmd-name-argv
218-
219-
202b17c Mike Bland <mbland@acm.org>
220-
core: Export _GO_CMD_{NAME,ARGV}, add Bash test
221-
222-
d674191 Mike Bland <mbland@acm.org>
223-
Merge pull request #7 from mbland/cmd-desc
224-
225-
9bd1524 Mike Bland <mbland@acm.org>
226-
core: Default to 80 columns on all tput errors
227-
228-
47d9476 Mike Bland <mbland@acm.org>
229-
TEMP: Print value of $TERM to debug Travis issue
230-
231-
271c726 Mike Bland <mbland@acm.org>
232-
core: Check $TERM before setting columns with tput
233-
234-
c1ba9c8 Mike Bland <mbland@acm.org>
235-
cmd_desc: Show full command names in descriptions
236-
237-
c2098c4 Mike Bland <mbland@acm.org>
238-
Merge pull request #6 from mbland/core-updates
239-
240-
2777ca8 Mike Bland <mbland@acm.org>
241-
core: Export variables for non-Bash script access
242-
243-
1158bc7 Mike Bland <mbland@acm.org>
244-
core: Escape % when only one @go.printf argument
245-
246-
995daf0 Mike Bland <mbland@acm.org>
247-
script_helper: Default to bash, allow other langs
248-
249-
6444f51 Mike Bland <mbland@acm.org>
250-
Merge pull request #5 from mbland/modules-builtin
251-
252-
0a4886a Mike Bland <mbland@acm.org>
253-
README: ./go modules help => ./go modules --help
254-
255-
78c447a Mike Bland <mbland@acm.org>
256-
test, modules: Quote $_GO_USE_MODULES, add docs
257-
258-
9bb7a45 Mike Bland <mbland@acm.org>
259-
Add modules builtin command
260-
261-
766a354 Mike Bland <mbland@acm.org>
262-
command_descriptions: Trim trailing whitespace
263-
264-
e764723 Mike Bland <mbland@acm.org>
265-
command_descriptions: Return error if read fails
266-
267-
7cd5dd5 Mike Bland <mbland@acm.org>
268-
kcov: Add note explaining 2>/dev/null redirection
269-
270-
80b7abe Mike Bland <mbland@acm.org>
271-
test: Use time builtin
272-
273-
4c8f931 Mike Bland <mbland@acm.org>
274-
complete: Add public module, completion removal
275-
276-
97fd0df Mike Bland <mbland@acm.org>
277-
test/script_helper: Add TEST_GO_PLUGINS_DIR
278-
279-
2d88f57 Mike Bland <mbland@acm.org>
280-
format: Add public module, pad and zip functions
281-
282-
8c23dcd Mike Bland <mbland@acm.org>
283-
Merge pull request #3 from mbland/lightning-talk
284-
285-
4f1e6c6 Mike Bland <mbland@acm.org>
286-
README: Update location of lib/internal/env
287-
288-
515730d Mike Bland <mbland@acm.org>
289-
README: Add link to Surge 2016 lightning talk
290-
291-
2cbfdda Mike Bland <mbland@acm.org>
292-
Merge pull request #2 from mbland/use-modules
293-
294-
a5973af Mike Bland <mbland@acm.org>
295-
use: Fix test for bash < 4.4
296-
297-
55d09f9 Mike Bland <mbland@acm.org>
298-
test: Replace direct source with _GO_USE_MODULES
299-
300-
ed78d9f Mike Bland <mbland@acm.org>
301-
core: Add _GO_USE_MODULES for optional modules
302-
303-
2d5cb96 Mike Bland <mbland@acm.org>
304-
Merge pull request #1 from mbland/refactor
305-
306-
345dd55 Mike Bland <mbland@acm.org>
307-
Lowercase __go_orig_dir, unset temp globals
308-
309-
e6c29fd Mike Bland <mbland@acm.org>
310-
Move all lib/ files to lib/internal/
26+
187715e Mike Bland <mbland@acm.org>
27+
Merge pull request #24 from mbland/printf-esc-seqs
31128

312-
1634d85 Mike Bland <mbland@acm.org>
313-
core: Refactor, update comments
29+
4bc05c8 Mike Bland <mbland@acm.org>
30+
log: Replace `echo -e` with `printf`
31431
</pre>

go-core.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ fi
3939
# This and other variables are exported, so that command scripts written in
4040
# languages other than Bash (and hence run in new processes) can access them.
4141
# See `./go vars` and `./go help vars`.
42-
declare -r -x _GO_CORE_VERSION='v1.1.0'
42+
declare -r -x _GO_CORE_VERSION='v1.1.1'
4343

4444
# The URL of the framework's original source repository
4545
declare -r -x _GO_CORE_URL='https://github.com/mbland/go-script-bash'

0 commit comments

Comments
 (0)