Skip to content

Commit c3139e0

Browse files
committed
test(runLint): add check for touching POSIX mode
Problematic because it can cause keybindings to change. #190
1 parent bed99a4 commit c3139e0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/runLint

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,6 @@ filter_out='^(test/|bash_completion\.sh)' gitgrep ' \[ ' \
5252
'use [[ ]] instead of [ ]'
5353

5454
gitgrep $cmdstart'unset [^-]' 'Explicitly specify "unset -v/-f"'
55+
56+
gitgrep $cmdstart'((set|shopt)\s+[+-][a-z]+\s+posix\b|(local\s+)?POSIXLY_CORRECT\b)' \
57+
'fiddling with posix mode breaks keybindings with some bash versions'

0 commit comments

Comments
 (0)