File tree 2 files changed +13
-1
lines changed
2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ _export()
52
52
return
53
53
fi
54
54
local suffix=" "
55
- if ! $remove ; then
55
+ if ! $remove && [[ $action != function ]] ; then
56
56
suffix= " ="
57
57
compopt -o nospace
58
58
fi
Original file line number Diff line number Diff line change 1
1
import pytest
2
2
3
+ from conftest import assert_bash_exec
4
+
3
5
4
6
class TestExport :
5
7
@pytest .mark .complete ("export BASH" )
@@ -34,3 +36,13 @@ def test_7(self, completion):
34
36
@pytest .mark .complete ("export -" , require_cmd = True )
35
37
def test_8 (self , completion ):
36
38
assert completion
39
+
40
+ @pytest .fixture (scope = "class" )
41
+ def export_f_canary (self , request , bash ):
42
+ assert_bash_exec (bash , "_comp__test_export_f_canary() { return; }" )
43
+
44
+ @pytest .mark .complete ("export -f _comp__test_export_f_canar" )
45
+ def test_no_equals_sign_for_function (self , completion , export_f_canary ):
46
+ assert completion
47
+ assert "=" not in "" .join (completion )
48
+ assert completion .endswith (" " )
You can’t perform that action at this time.
0 commit comments