Repository navigation
Shell import graph: oh-my-bash and tfenv as repos 3 and 4; keep the literal tail of "$VAR"/path (Part of #3798) - #6617
Merged
Conversation
…s); keep the literal tail of "$VAR"/path (Part of #3798) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
|
No description provided. |
Contributor
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.
Part of #3798. Checklist: none named.
What
The brief's "Shell 28 / JS 63" are stale: #6403 already gave JS two repos (433 imports) and Shell two (56). Shell was still small-n (< 100,
graph_coverage_chart.SMALL_N). This addsohmybash/oh-my-bashandtfutils/tfenv(both MIT, pinned) to the import-graph corpus: Shell 56 -> 100 imports, 4 repos, precision/recall 100.0/100.0, hub overlap@10 1.00.The new repo exposed one engine gap (4 FN,
fn:capture-missed):source "$OSH"/tools/upgrade.shcloses the quote before the literal tail, so_dependency_capturestopped at$OSHand the variable-path resolver (#3598) had no tail. The capture now keeps a tail after a closed quote when the token starts with$; other shapes are unchanged. Golden: 1 shell file (reactos/codespell_check.sh) gains the edge, plus the import lookup/digest aggregates, both legs.Class / Sibling gaps
Class: shell
source/.path whose variable prefix is quoted separately from the literal tail ("$V"/x,"${V}"/x,'$V'/x); tested with the unquoted, whole-quoted, bare-variable and non-variable shapes. Sibling gaps: (1)source "$(dirname "$0")/x.sh"still captures$(dirname(command-substitution prefix; no burned program needs it); (2) shellspec was tried and not pinned: tree-sitter-bash hits an ERROR node on its header, so the reference misses 4 real. "$LIB/..."sources (4 FP that are the reference's blind spot) -- a rule fallback or ledger verdict would be needed. Different mechanism, so not here. Other families in the issue (Elixir, Erlang, OCaml, Julia, R, Nim, HCL) have no engine language profile:add-languagefirst. asdf-vm/asdf was tried first: 0 resolvable imports added. Ledger: Shell has no open shapes; ledger left untouched (a run only moved timestamps). Not in the call-graph corpus (no shell reference incallgraph_refs.py), so nocallgraph:falseneeded.Gates
pr_gates --fast7/7; related tests (186) pass; goldens blessed viagolden-lock.sh crucible_check.py --update --yes; coverage SVG regenerated (it was stale).--ratchetsnot run here.Cross-repo: none.
🤖 Generated with Claude Code