-
-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement BASH_LINENO, and attempt to implement BASH_SOURCE.
BASH_SOURCE is for the definition site, not the call site. - Detect exit code 124 for completion function - Better tracing. Also fix some spec test failures. Still one more.
- Loading branch information
Andy Chu
committed
Sep 24, 2018
1 parent
ca71604
commit 42b4f96
Showing
8 changed files
with
104 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
# | ||
# Completion scripts | ||
# | ||
# Usage: | ||
# source demo/completion.sh <function name> | ||
|
||
argv() { | ||
spec/bin/argv.py "$@" | ||
} | ||
|
||
complete_foo() { | ||
argv "$@" | ||
|
||
# This value is used in main bash_completion script. | ||
|
||
argv source "${BASH_SOURCE[@]}" | ||
argv 'source[0]' "${BASH_SOURCE[0]}" | ||
|
||
COMPREPLY=(one two three) | ||
} | ||
|
||
complete -F complete_foo foo | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,7 @@ echo status=$? | |
## STDOUT: | ||
x = (Str s:42) | ||
status=0 | ||
'nonexistent' is not defined | ||
status=1 | ||
## END | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters