-
-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[strict_errexit] Allow assignments as conditionals.
For example if x=$(false); then ... and while x=$(true); do ... The error message had the wrong location, which is #1107. But we don't need this error message at all. I don't personally like this idiom. But maybe someone uses it. https://utcc.utoronto.ca/~cks/space/blog/programming/BourneIfCanSetVars?showcomments Also fix location.SpanForCommand() function, although it's not tickled because of the change above.
- Loading branch information
Andy C
committed
Apr 24, 2022
1 parent
b4f2bdf
commit 55db3f0
Showing
5 changed files
with
93 additions
and
4 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 |
---|---|---|
|
@@ -669,3 +669,4 @@ dict:3 | |
## END | ||
## N-I dash/mksh status: 99 | ||
## N-I dash/mksh stdout-json: "" | ||
|
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