Integrate upstream dash changes into unbourne shell #656
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
this merges the changes from the previous commit (as listed in the source), up to the latest commit to dash, with the changes seen here:
https://git.kernel.org/pub/scm/utils/dash/dash.git/diff/?id=057cd650a4edd5856213d431a974ff35c6594489&id2=fba95e9e4a5d0f1f1ac9f7d86557e47bc0e2656c&context=5&ignorews=0&dt=0
patching was done by hand, but I've done several passes over the past day to make sure I got everything. note that I've omitted the changes from e.g.
stat
tostat64
.having an Actually Portable shell is potentially useful to me. however, I was running into bugs that had already been fixed upstream — this bug in particular, involving variable expansions. but after patching that, I figured I may as well apply the rest of the changes.
there are still some quirks on Windows, but my PR hasn't affected them at all:
exec program
checks paths for.com
and.exe
extensions; simply runningprogram
will not findprogram.exe
in$PATH
. is this intentional?