Skip to content

Commit 55d2015

Browse files
committed
Fixed bash completion issues.
* No more leading newline at the top of completion file. * Corrected completion filename.
1 parent c866f10 commit 55d2015

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

ChangeLog

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
2.6.2 (TBA)
1+
2.7.0 (TBA)
22
------------------
33

44
New features:
@@ -9,6 +9,8 @@ Bugfixes:
99

1010
* Fixed comment of the evaluate_strictness function in commented mode.
1111
* `ARG_OPTIONAL_BOOL` won't let you specify other default values than `on` or `off`.
12+
* Fixed bash completion containing a leading newline.
13+
* Fixed Argbash bash completion generated filename.
1214

1315

1416
2.6.1 (2018-03-04)

resources/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ ROOT ?= /
4545

4646
A_INIT = ../bin/argbash-init
4747
GENPARSE = ../bin/argbash
48-
COMPLETION = argbash.sh
48+
COMPLETION = argbash
4949
INSTALL_COMPLETION ?= no
5050
ARGBASH_EXEC ?= $(GENPARSE)
5151
ARGBASH_INIT_EXEC ?= $(A_INIT)

src/output-completion.m4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ dnl $1: The macro call (the caller is supposed to pass [$0($@)])
88
dnl What is also part of the API: The line
99
dnl ### START OF CODE GENERATED BY Argbash vx.y.z one line above ###
1010
m4_define([ARGBASH_GO_BASE], [m4_do(
11-
[[$1
12-
]],
11+
[m4_ifnblank([$1], [[$1
12+
]])],
1313
[dnl ASSERT_THAT_BASENAME_IS_KNOWN
1414
],
1515
[m4_define([_BASENAME], INFERRED_BASENAME_NOERROR)],

0 commit comments

Comments
 (0)