-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
294 additions
and
107 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: "Builtins: compgen" | ||
cases: | ||
- name: "compgen -A alias" | ||
stdin: | | ||
alias myalias="ls" | ||
alias myalias2="echo hi" | ||
compgen -A alias myalias | ||
- name: "compgen -A builtin" | ||
stdin: | | ||
compgen -A builtin cd | ||
- name: "compgen -A directory" | ||
known_failure: true | ||
stdin: | | ||
touch somefile | ||
mkdir somedir | ||
mkdir somedir2 | ||
compgen -A directory some | ||
- name: "compgen -A file" | ||
known_failure: true | ||
stdin: | | ||
touch somefile | ||
mkdir somedir | ||
mkdir somedir2 | ||
compgen -A file some | ||
- name: "compgen -A function" | ||
stdin: | | ||
myfunc() { | ||
echo hi | ||
} | ||
myfunc2() { | ||
echo hello | ||
} | ||
compgen -A function myfunc | ||
- name: "compgen -A keyword" | ||
stdin: | | ||
compgen -A keyword esa | ||
- name: "compgen -A variable" | ||
stdin: | | ||
declare myvar=10 | ||
declare myvar2=11 | ||
compgen -A variable myvar |
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
Oops, something went wrong.