Repository navigation
Conversation
This branch has not been deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Running
shellspecfrom a project subdirectory currently resolves the implicitspecpath against that subdirectory, despite having found and changed to the project root. It exits withNot found a path: spec.Resolve the implicit default path and its path patterns against the discovered project root. Keep explicitly supplied paths relative to the invocation directory. This avoids changing
SHELLSPEC_CWD, which other operations also use. Document the distinction in the execution-directory guide.Fixes #363.
Four integration tests exercise default and explicit paths/patterns through the actual CLI; two fail before the change. All four pass under sh, Bash and zsh. Eight additional public CLI checks cover root/subdirectory execution, translation, syntax checking, an absolute default path and
-C.The full sh suite runs 1,700 examples with one failure and 58 skips. The clean base runs 1,696 examples with the same failure/skips: the existing symlink
finddirs()test encountersls: not listing already-listed directoryon this host. ShellCheck is clean for the new test; the command retains four identical baseline diagnostics. Other operating systems and the complete supported-shell matrix were not run.