-
-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[core] Fix check for parsing options at top level
This is #1628. There are non-proc calls like 'source foo.sh a b c' and 'FOO=bar' that push the stacks in state.Mem(). So we have more subtle logic. It would be nice if mem.debug_stack had more structured data. It could tell us about 'source' vs function calls. What they have in common is the argv_stack.
- Loading branch information
Andy C
committed
May 24, 2023
1 parent
6eeff1b
commit 5b6b75b
Showing
3 changed files
with
42 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Used by spec/oil-options.test.sh | ||
|
||
shopt -s parse_paren | ||
shopt -s expand_aliases | ||
|