strands-shell 0.7.0__tar.gz → 0.7.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {strands_shell-0.7.0 → strands_shell-0.7.1}/Cargo.lock +1 -1
- {strands_shell-0.7.0 → strands_shell-0.7.1}/Cargo.toml +1 -1
- {strands_shell-0.7.0 → strands_shell-0.7.1}/PKG-INFO +1 -1
- {strands_shell-0.7.0 → strands_shell-0.7.1}/package.json +1 -1
- {strands_shell-0.7.0 → strands_shell-0.7.1}/pyproject.toml +1 -1
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/commands/curl.rs +26 -4
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/vfs_kernel.rs +218 -11
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/curl_integration.rs +202 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/.cargo/config.toml +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/.gitattributes +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/.github/actions/stamp-version/action.yml +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/.github/dependabot.yml +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/.github/labelers/language.yml +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/.github/labelers/type.yml +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/.github/scripts/group-release-notes.py +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/.github/workflows/auto-close.yml +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/.github/workflows/bot-pr-review-gate.yml +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/.github/workflows/ci.yml +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/.github/workflows/issue-labeler.yml +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/.github/workflows/pr-title.yml +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/.github/workflows/release.yml +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/.gitignore +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/AGENTS.md +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/CODE_OF_CONDUCT.md +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/CONTRIBUTING.md +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/LICENSE +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/NOTICE +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/README.md +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/SECURITY.md +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/build.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/index.d.ts +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/index.js +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/python/strands_shell/__init__.py +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/scripts/build-wasm.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/builtins/alias.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/builtins/builtin.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/builtins/cd.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/builtins/colon.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/builtins/echo.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/builtins/export.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/builtins/find.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/builtins/getopts.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/builtins/hash.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/builtins/local.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/builtins/lua.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/builtins/lua_pattern.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/builtins/mod.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/builtins/printf.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/builtins/pwd.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/builtins/read.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/builtins/set.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/builtins/shift.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/builtins/shopt.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/builtins/test.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/builtins/trap.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/builtins/type_cmd.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/builtins/umask.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/builtins/unset.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/builtins/wait.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/builtins/which.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/builtins/xargs.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/cli.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/command_fallback.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/commands/base64.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/commands/basename.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/commands/cat.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/commands/chmod.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/commands/cp.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/commands/cut.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/commands/date.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/commands/dirname.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/commands/echo.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/commands/env.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/commands/false.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/commands/grep.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/commands/head.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/commands/id.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/commands/jq.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/commands/ln.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/commands/ls.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/commands/mkdir.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/commands/mktemp.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/commands/mod.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/commands/mv.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/commands/pwd.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/commands/readlink.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/commands/rm.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/commands/rmdir.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/commands/sed.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/commands/sleep.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/commands/sort.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/commands/tail.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/commands/tee.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/commands/touch.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/commands/tr.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/commands/true.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/commands/uname.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/commands/uniq.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/commands/wc.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/commands/whoami.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/exec.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/io.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/js.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/lib.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/main.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/mcp.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/mcp_client.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/os.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/parser.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/prelude.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/python.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/shell.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/vfs.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/vfs_config.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/src/wasm_main.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/strands-shell-macros/Cargo.toml +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/strands-shell-macros/src/lib.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/claude_code_preamble.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/command_check.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/command_fallback.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/command_registry.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/config.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/custom_kernel.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/date_fixed_clock.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/README.md +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/and_or_chain.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/and_or_chain.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/args_at_vs_star.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/args_at_vs_star.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/arithmetic.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/arithmetic.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/arithmetic_compare_and_logic.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/arithmetic_compare_and_logic.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/arithmetic_division_by_zero.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/arithmetic_division_by_zero.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/base64_decode.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/base64_decode.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/base64_decode_invalid.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/base64_decode_invalid.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/base64_encode.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/base64_encode.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/base64_missing_file.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/base64_missing_file.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/basename_dirname.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/basename_dirname.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/case_glob_and_fallthrough.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/case_glob_and_fallthrough.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/case_statement.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/case_statement.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/cat_multiple_files.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/cat_multiple_files.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/cmdsub_exit_status.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/cmdsub_exit_status.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/cmdsub_nested_quotes.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/cmdsub_nested_quotes.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/cmdsub_trailing_newlines_stripped.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/cmdsub_trailing_newlines_stripped.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/command_not_found.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/command_not_found.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/command_skips_function.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/command_skips_function.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/command_stage_streams.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/command_stage_streams.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/command_substitution.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/command_substitution.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/command_v_hash_and_path.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/command_v_hash_and_path.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/command_v_slash_name.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/command_v_slash_name.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/command_v_unset_path.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/command_v_unset_path.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/compound_pipe_into_function.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/compound_pipe_into_function.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/cp_recursive.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/cp_recursive.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/crlf_output.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/crlf_output.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/cut_characters.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/cut_characters.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/cut_tr.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/cut_tr.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/double_bracket.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/double_bracket.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/double_bracket_alias.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/double_bracket_alias.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/echo_backslash_literal.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/echo_backslash_literal.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/echo_e.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/echo_e.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/echo_n_flag.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/echo_n_flag.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/empty_command_name.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/empty_command_name.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/empty_path.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/empty_path.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/executor_builtins_in_pipeline.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/executor_builtins_in_pipeline.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/exit_status.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/exit_status.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/export_attributes.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/export_attributes.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/export_hidden_from_children.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/export_hidden_from_children.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/export_visibility.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/export_visibility.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/find_basic.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/find_basic.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/find_empty.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/find_empty.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/find_exec.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/find_exec.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/find_missing_start.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/find_missing_start.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/find_trailing_slash.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/find_trailing_slash.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/for_loop.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/for_loop.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/function_local_scope.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/function_local_scope.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/function_shadows_builtin.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/function_shadows_builtin.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/functions.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/functions.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/glob_expansion.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/glob_expansion.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/glob_question_and_class.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/glob_question_and_class.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/grep_basic.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/grep_basic.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/grep_files_with_matches.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/grep_files_with_matches.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/grep_multiple_files_prefix.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/grep_multiple_files_prefix.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/grep_only_matching.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/grep_only_matching.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/grep_recursive.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/grep_recursive.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/grep_word_and_fixed.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/grep_word_and_fixed.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/hash_in_word.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/hash_in_word.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/head_tail.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/head_tail.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/head_tail_bytes.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/head_tail_bytes.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/here_string.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/here_string.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/heredoc.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/heredoc.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/heredoc_inside_compound_commands.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/heredoc_inside_compound_commands.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/heredoc_inside_compound_followed_by_lines.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/heredoc_inside_compound_followed_by_lines.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/heredoc_inside_compound_keyword_delimiter.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/heredoc_inside_compound_keyword_delimiter.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/heredoc_inside_compound_variants.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/heredoc_inside_compound_variants.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/heredoc_quoted_delimiter_variants.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/heredoc_quoted_delimiter_variants.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/if_elif_else.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/if_elif_else.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/ifs_custom_split.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/ifs_custom_split.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/jq_basic.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/jq_basic.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/jq_invalid_json.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/jq_invalid_json.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/jq_missing_key_null.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/jq_missing_key_null.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/jq_select_filter.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/jq_select_filter.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/local_without_value.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/local_without_value.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/loop_break_continue.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/loop_break_continue.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/loop_nested_break_n.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/loop_nested_break_n.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/loop_while_read_file_fields.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/loop_while_read_file_fields.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/ls_created_files.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/ls_created_files.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/missing_file.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/missing_file.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/mkdir_cp_mv_rm.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/mkdir_cp_mv_rm.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/param_default_assign.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/param_default_assign.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/param_error_unset.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/param_error_unset.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/parameter_expansion.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/parameter_expansion.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/pipe_into_while_read.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/pipe_into_while_read.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/pipeline_sort_uniq.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/pipeline_sort_uniq.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/pipeline_status.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/pipeline_status.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/positional_shift.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/positional_shift.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/printf_basic.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/printf_basic.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/printf_number_formats.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/printf_number_formats.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/printf_percent_and_escapes.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/printf_percent_and_escapes.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/printf_reuses_format.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/printf_reuses_format.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/printf_zero_pad.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/printf_zero_pad.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/quote_backslash_in_double.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/quote_backslash_in_double.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/quote_empty_args.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/quote_empty_args.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/quoting.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/quoting.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/read_ifs_fields.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/read_ifs_fields.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/read_raw_backslash.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/read_raw_backslash.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/redirect_both_ampersand.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/redirect_both_ampersand.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/redirect_digit_word.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/redirect_digit_word.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/redirect_order_matters.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/redirect_order_matters.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/redirect_overwrite_append.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/redirect_overwrite_append.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/redirect_stderr_devnull.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/redirect_stderr_devnull.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/redirect_stderr_to_file.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/redirect_stderr_to_file.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/redirect_stderr_to_stdout.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/redirect_stderr_to_stdout.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/redirect_stdin.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/redirect_stdin.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/rm_missing_file.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/rm_missing_file.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/sed_addresses_and_delete.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/sed_addresses_and_delete.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/sed_basic.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/sed_basic.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/sed_bre_literals.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/sed_bre_literals.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/sed_global_and_delimiter.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/sed_global_and_delimiter.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/set_e.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/set_e.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/set_e_function_pipeline_stage.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/set_e_function_pipeline_stage.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/set_e_in_condition.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/set_e_in_condition.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/set_e_subshell_exit.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/set_e_subshell_exit.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/set_u_unset_variable.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/set_u_unset_variable.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/sh_c_errexit_not_inherited.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/sh_c_errexit_not_inherited.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/sh_c_negated_child_keeps_its_errexit.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/sh_c_negated_child_keeps_its_errexit.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/sh_c_nounset_not_inherited.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/sh_c_nounset_not_inherited.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/sh_c_parent_keeps_its_errexit.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/sh_c_parent_keeps_its_errexit.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/sh_c_pipefail_not_inherited.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/sh_c_pipefail_not_inherited.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/sh_c_xtrace_not_inherited.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/sh_c_xtrace_not_inherited.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/sh_dash_c.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/sh_dash_c.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/sh_script_errexit_not_inherited.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/sh_script_errexit_not_inherited.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/sort_numeric_prefix.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/sort_numeric_prefix.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/sort_options.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/sort_options.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/sort_reverse_unique_key.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/sort_reverse_unique_key.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/source_and_or_line_end.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/source_and_or_line_end.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/subshell_cd_isolation.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/subshell_cd_isolation.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/subshell_isolation.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/subshell_isolation.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/test_conditions.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/test_conditions.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/test_symlink_flags.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/test_symlink_flags.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/touch_times.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/touch_times.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/tr_ranges_and_delete.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/tr_ranges_and_delete.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/uniq_dup_and_count.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/uniq_dup_and_count.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/wc_counts.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/wc_counts.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/while_loop.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/while_loop.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/word_splitting_unquoted.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/word_splitting_unquoted.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/xargs_basic.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/xargs_basic.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/xargs_n1.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/xargs_n1.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/xargs_with_grep.expected +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential/cases/xargs_with_grep.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/differential.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/fixtures/claude-code-snapshot-script.sh +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/js/test_bindings.mjs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/js/test_builder.mjs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/js/test_config.mjs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/lookup_and_env.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/lua_integration.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/mcp_integration.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/path_resolution_cost.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/python/test_api.py +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/python/test_bindings.py +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/python/test_builder.py +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/python/test_config.py +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/shell_integration.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/touch_times.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/ts/api.types.ts +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tests/vfs_unit.rs +0 -0
- {strands_shell-0.7.0 → strands_shell-0.7.1}/tsconfig.json +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name = "strands-shell"
|
|
3
3
|
# Placeholder — the real version comes from the release git tag, stamped at
|
|
4
4
|
# build time by .github/actions/stamp-version. Do not bump this by hand.
|
|
5
|
-
version = "0.7.
|
|
5
|
+
version = "0.7.1"
|
|
6
6
|
edition = "2024"
|
|
7
7
|
description = "A virtual shell sandbox for AI agents"
|
|
8
8
|
license = "Apache-2.0"
|
|
@@ -6,7 +6,7 @@ build-backend = "maturin"
|
|
|
6
6
|
name = "strands-shell"
|
|
7
7
|
# Placeholder — the real version comes from the release git tag, stamped at
|
|
8
8
|
# build time by .github/actions/stamp-version. Do not bump this by hand.
|
|
9
|
-
version = "0.7.
|
|
9
|
+
version = "0.7.1"
|
|
10
10
|
description = "A virtual shell for AI agents"
|
|
11
11
|
readme = "README.md"
|
|
12
12
|
requires-python = ">=3.10"
|
|
@@ -313,6 +313,19 @@ async fn cmd_curl(os: &dyn Kernel, args: &[String]) -> CommandResult {
|
|
|
313
313
|
{
|
|
314
314
|
headers.push(format!("User-Agent: {ua}"));
|
|
315
315
|
}
|
|
316
|
+
// Preserve an explicit Content-Type removal so POST data does not restore
|
|
317
|
+
// the default after empty header values are discarded.
|
|
318
|
+
let suppress_content_type = headers.iter().any(|h| {
|
|
319
|
+
h.split_once(':').is_some_and(|(name, value)| {
|
|
320
|
+
name.trim().eq_ignore_ascii_case("content-type") && value.trim().is_empty()
|
|
321
|
+
})
|
|
322
|
+
});
|
|
323
|
+
// An empty `-H 'Name:'` is not sent. The client still derives Host from the
|
|
324
|
+
// URL; unlike system curl, this does not omit Host from the wire request.
|
|
325
|
+
headers.retain(|h| {
|
|
326
|
+
h.split_once(':')
|
|
327
|
+
.is_none_or(|(_, value)| !value.trim().is_empty())
|
|
328
|
+
});
|
|
316
329
|
|
|
317
330
|
if head && data.is_some() {
|
|
318
331
|
if !silent {
|
|
@@ -394,15 +407,24 @@ async fn cmd_curl(os: &dyn Kernel, args: &[String]) -> CommandResult {
|
|
|
394
407
|
let mut request_url = current_url.clone();
|
|
395
408
|
for (name, value) in os.resolve_credential(¤t_url, &method) {
|
|
396
409
|
if name == "__query_param__" {
|
|
397
|
-
|
|
398
|
-
|
|
410
|
+
// The parameter goes into the query, ahead of any fragment:
|
|
411
|
+
// after a `#` it is part of the fragment and never sent.
|
|
412
|
+
let (base, fragment) = match request_url.split_once('#') {
|
|
413
|
+
Some((base, fragment)) => (base, Some(fragment)),
|
|
414
|
+
None => (request_url.as_str(), None),
|
|
415
|
+
};
|
|
416
|
+
let sep = if base.contains('?') { "&" } else { "?" };
|
|
417
|
+
request_url = match fragment {
|
|
418
|
+
Some(fragment) => format!("{base}{sep}{value}#{fragment}"),
|
|
419
|
+
None => format!("{base}{sep}{value}"),
|
|
420
|
+
};
|
|
399
421
|
} else {
|
|
400
422
|
req_headers.push((name, value));
|
|
401
423
|
}
|
|
402
424
|
}
|
|
403
425
|
|
|
404
|
-
// Default content-type for POST data
|
|
405
|
-
if data.is_some() {
|
|
426
|
+
// Default content-type for POST data, unless explicitly removed.
|
|
427
|
+
if data.is_some() && !suppress_content_type {
|
|
406
428
|
let has_ct = req_headers
|
|
407
429
|
.iter()
|
|
408
430
|
.any(|(n, _)| n.eq_ignore_ascii_case("content-type"));
|
|
@@ -1494,8 +1494,10 @@ fn url_matches_prefix(url: &url::Url, prefix: &str) -> bool {
|
|
|
1494
1494
|
/// Whether a server could read `url` as leaving the path of the credential bound
|
|
1495
1495
|
/// to `prefix`. The URL parser keeps `/alpha/..%2Fbeta` as one segment under
|
|
1496
1496
|
/// `/alpha/`, but a server that decodes `%2F` or `%5C` before it resolves dot
|
|
1497
|
-
/// segments serves `/beta`. A
|
|
1498
|
-
///
|
|
1497
|
+
/// segments serves `/beta`. A server that strips `;` parameters from a segment
|
|
1498
|
+
/// before it resolves dot segments, as Tomcat and Spring do, also serves
|
|
1499
|
+
/// `/alpha/..;/beta` as `/beta`. A credential bound to a whole host has no path
|
|
1500
|
+
/// to leave.
|
|
1499
1501
|
fn leaves_path_scope(url: &url::Url, prefix: &str) -> bool {
|
|
1500
1502
|
let bound_to_path = url::Url::parse(prefix).is_ok_and(|p| !matches!(p.path(), "" | "/"));
|
|
1501
1503
|
if !bound_to_path {
|
|
@@ -1507,7 +1509,9 @@ fn leaves_path_scope(url: &url::Url, prefix: &str) -> bool {
|
|
|
1507
1509
|
.replace("%2e", ".")
|
|
1508
1510
|
.replace("%2f", "/")
|
|
1509
1511
|
.replace("%5c", "/");
|
|
1510
|
-
decoded
|
|
1512
|
+
decoded
|
|
1513
|
+
.split('/')
|
|
1514
|
+
.any(|segment| segment.split(';').next() == Some(".."))
|
|
1511
1515
|
}
|
|
1512
1516
|
|
|
1513
1517
|
/// Check if an IP address is private/loopback/link-local/IMDS.
|
|
@@ -1665,11 +1669,12 @@ fn without_query(url: &str) -> &str {
|
|
|
1665
1669
|
url.split(['?', '#']).next().unwrap_or(url)
|
|
1666
1670
|
}
|
|
1667
1671
|
|
|
1668
|
-
///
|
|
1669
|
-
///
|
|
1670
|
-
///
|
|
1671
|
-
///
|
|
1672
|
-
///
|
|
1672
|
+
/// Check `Host`, each `X-Forwarded-Host` entry, and each actual `host` parameter
|
|
1673
|
+
/// in `Forwarded` against the URL. URL-based access and credential checks do not
|
|
1674
|
+
/// inspect this proxy metadata. `Forwarded` parameter boundaries and quoted
|
|
1675
|
+
/// values follow RFC 7239; extension names and text inside quoted values are not
|
|
1676
|
+
/// host parameters. This check does not model nonstandard interpretations in
|
|
1677
|
+
/// downstream frameworks or other headers a server may use to select a site.
|
|
1673
1678
|
fn check_host_header(req: &HttpRequest) -> io::Result<()> {
|
|
1674
1679
|
let refused = |reason: String| io::Error::new(io::ErrorKind::PermissionDenied, reason);
|
|
1675
1680
|
let url = url::Url::parse(&req.url).map_err(|_| {
|
|
@@ -1679,15 +1684,92 @@ fn check_host_header(req: &HttpRequest) -> io::Result<()> {
|
|
|
1679
1684
|
))
|
|
1680
1685
|
})?;
|
|
1681
1686
|
for (name, value) in &req.headers {
|
|
1682
|
-
if name.eq_ignore_ascii_case("host")
|
|
1687
|
+
let matches = if name.eq_ignore_ascii_case("host") {
|
|
1688
|
+
names_host(&url, value)
|
|
1689
|
+
} else if name.eq_ignore_ascii_case("x-forwarded-host") {
|
|
1690
|
+
value.split(',').all(|host| names_host(&url, host))
|
|
1691
|
+
} else if name.eq_ignore_ascii_case("forwarded") {
|
|
1692
|
+
let hosts = forwarded_hosts(value)
|
|
1693
|
+
.ok_or_else(|| refused("access denied: malformed Forwarded header".into()))?;
|
|
1694
|
+
hosts.iter().all(|host| names_host(&url, host))
|
|
1695
|
+
} else {
|
|
1696
|
+
continue;
|
|
1697
|
+
};
|
|
1698
|
+
if !matches {
|
|
1683
1699
|
return Err(refused(format!(
|
|
1684
|
-
"access denied:
|
|
1700
|
+
"access denied: {name} header {value:?} does not name the host of the URL"
|
|
1685
1701
|
)));
|
|
1686
1702
|
}
|
|
1687
1703
|
}
|
|
1688
1704
|
Ok(())
|
|
1689
1705
|
}
|
|
1690
1706
|
|
|
1707
|
+
/// Read actual `host` parameters in a `Forwarded` header, decoding quoted pairs.
|
|
1708
|
+
/// Delimiters inside quoted strings belong to the value, not the parameter list.
|
|
1709
|
+
/// Reject unparseable syntax rather than skip a possible host parameter.
|
|
1710
|
+
fn forwarded_hosts(mut rest: &str) -> Option<Vec<String>> {
|
|
1711
|
+
let is_token = |b: u8| b.is_ascii_alphanumeric() || b"!#$%&'*+-.^_`|~".contains(&b);
|
|
1712
|
+
let mut hosts = Vec::new();
|
|
1713
|
+
loop {
|
|
1714
|
+
rest = rest.trim_start_matches([' ', '\t']);
|
|
1715
|
+
if rest.is_empty() {
|
|
1716
|
+
return Some(hosts);
|
|
1717
|
+
}
|
|
1718
|
+
// RFC 7239 permits empty pairs, and HTTP lists permit empty elements.
|
|
1719
|
+
if rest.starts_with([',', ';']) {
|
|
1720
|
+
rest = &rest[1..];
|
|
1721
|
+
continue;
|
|
1722
|
+
}
|
|
1723
|
+
let key_end = rest.bytes().take_while(|b| is_token(*b)).count();
|
|
1724
|
+
if key_end == 0 {
|
|
1725
|
+
return None;
|
|
1726
|
+
}
|
|
1727
|
+
let is_host = rest[..key_end].eq_ignore_ascii_case("host");
|
|
1728
|
+
rest = rest[key_end..].trim_start_matches([' ', '\t']);
|
|
1729
|
+
rest = rest.strip_prefix('=')?.trim_start_matches([' ', '\t']);
|
|
1730
|
+
let value = if let Some(quoted) = rest.strip_prefix('"') {
|
|
1731
|
+
let mut decoded = String::new();
|
|
1732
|
+
let mut chars = quoted.char_indices();
|
|
1733
|
+
loop {
|
|
1734
|
+
let (i, mut c) = chars.next()?;
|
|
1735
|
+
if c == '"' {
|
|
1736
|
+
rest = "ed[i + 1..];
|
|
1737
|
+
break;
|
|
1738
|
+
}
|
|
1739
|
+
if c == '\\' {
|
|
1740
|
+
c = chars.next()?.1;
|
|
1741
|
+
}
|
|
1742
|
+
if c.is_ascii_control() && c != '\t' {
|
|
1743
|
+
return None;
|
|
1744
|
+
}
|
|
1745
|
+
decoded.push(c);
|
|
1746
|
+
}
|
|
1747
|
+
decoded
|
|
1748
|
+
} else {
|
|
1749
|
+
// Keep accepting unquoted `ip:port` and `[v6]` values for every
|
|
1750
|
+
// parameter. RFC 7239 wants them quoted, but clients often send
|
|
1751
|
+
// `for=192.0.2.43:47011`, and none of these bytes can end a pair.
|
|
1752
|
+
let end = rest
|
|
1753
|
+
.bytes()
|
|
1754
|
+
.take_while(|b| is_token(*b) || matches!(*b, b':' | b'[' | b']'))
|
|
1755
|
+
.count();
|
|
1756
|
+
if end == 0 {
|
|
1757
|
+
return None;
|
|
1758
|
+
}
|
|
1759
|
+
let value = rest[..end].to_string();
|
|
1760
|
+
rest = &rest[end..];
|
|
1761
|
+
value
|
|
1762
|
+
};
|
|
1763
|
+
rest = rest.trim_start_matches([' ', '\t']);
|
|
1764
|
+
if !rest.is_empty() && !rest.starts_with([',', ';']) {
|
|
1765
|
+
return None;
|
|
1766
|
+
}
|
|
1767
|
+
if is_host {
|
|
1768
|
+
hosts.push(value);
|
|
1769
|
+
}
|
|
1770
|
+
}
|
|
1771
|
+
}
|
|
1772
|
+
|
|
1691
1773
|
/// Whether a `Host` header `value` names `url`'s host, and its port when it gives one.
|
|
1692
1774
|
fn names_host(url: &url::Url, value: &str) -> bool {
|
|
1693
1775
|
let Some(host) = url.host_str() else {
|
|
@@ -1740,7 +1822,10 @@ impl reqwest::dns::Resolve for SafeResolver {
|
|
|
1740
1822
|
|
|
1741
1823
|
#[cfg(test)]
|
|
1742
1824
|
mod url_safety_tests {
|
|
1743
|
-
use super::{
|
|
1825
|
+
use super::{
|
|
1826
|
+
check_host_header, check_url_safe, forwarded_hosts, names_host, url_matches_prefix,
|
|
1827
|
+
};
|
|
1828
|
+
use crate::os::HttpRequest;
|
|
1744
1829
|
|
|
1745
1830
|
// A1: IPv6 literals (incl. IPv4-mapped IMDS) must be blocked by
|
|
1746
1831
|
// `check_url_safe` ITSELF — not merely by the SafeResolver/connection
|
|
@@ -1850,6 +1935,128 @@ mod url_safety_tests {
|
|
|
1850
1935
|
assert!(!names_host(&v6, "[::2]:8080"));
|
|
1851
1936
|
}
|
|
1852
1937
|
|
|
1938
|
+
#[test]
|
|
1939
|
+
fn forwarded_hosts_reads_every_host_pair() {
|
|
1940
|
+
assert_eq!(forwarded_hosts("host=a.example").unwrap(), ["a.example"]);
|
|
1941
|
+
assert_eq!(
|
|
1942
|
+
forwarded_hosts(r#"for=192.0.2.1;Host="a.example:8080";proto=https"#).unwrap(),
|
|
1943
|
+
["a.example:8080"]
|
|
1944
|
+
);
|
|
1945
|
+
assert_eq!(
|
|
1946
|
+
forwarded_hosts("host=a.example, for=192.0.2.1;host=b.example").unwrap(),
|
|
1947
|
+
["a.example", "b.example"]
|
|
1948
|
+
);
|
|
1949
|
+
assert_eq!(
|
|
1950
|
+
forwarded_hosts("host=a.example;host=b.example").unwrap(),
|
|
1951
|
+
["a.example", "b.example"]
|
|
1952
|
+
);
|
|
1953
|
+
assert_eq!(
|
|
1954
|
+
forwarded_hosts("host=127.0.0.1:8080,host=[2001:db8::1]:8080").unwrap(),
|
|
1955
|
+
["127.0.0.1:8080", "[2001:db8::1]:8080"]
|
|
1956
|
+
);
|
|
1957
|
+
}
|
|
1958
|
+
|
|
1959
|
+
#[test]
|
|
1960
|
+
fn forwarded_hosts_preserves_quoted_values() {
|
|
1961
|
+
for (field, expected) in [
|
|
1962
|
+
(
|
|
1963
|
+
r#"ext="hello;host=other.example";host=a.example"#,
|
|
1964
|
+
"a.example",
|
|
1965
|
+
),
|
|
1966
|
+
(
|
|
1967
|
+
r#"ext="hello,host=other.example";host=a.example"#,
|
|
1968
|
+
"a.example",
|
|
1969
|
+
),
|
|
1970
|
+
(
|
|
1971
|
+
r#"ext="hello\";host=other.example";host=a.example"#,
|
|
1972
|
+
"a.example",
|
|
1973
|
+
),
|
|
1974
|
+
(r#"ext="hello\\";host=a.example"#, "a.example"),
|
|
1975
|
+
(r#"host="a.ex\ample.com""#, "a.example.com"),
|
|
1976
|
+
] {
|
|
1977
|
+
assert_eq!(forwarded_hosts(field).unwrap(), [expected], "{field}");
|
|
1978
|
+
}
|
|
1979
|
+
for field in [
|
|
1980
|
+
"for=192.0.2.1;proto=https",
|
|
1981
|
+
r#"ext="hello;host=other.example""#,
|
|
1982
|
+
r#"ext="hello,host=other.example""#,
|
|
1983
|
+
r#"ext="""#,
|
|
1984
|
+
" , ; for=unknown; , ",
|
|
1985
|
+
] {
|
|
1986
|
+
assert!(forwarded_hosts(field).unwrap().is_empty(), "{field}");
|
|
1987
|
+
}
|
|
1988
|
+
}
|
|
1989
|
+
|
|
1990
|
+
#[test]
|
|
1991
|
+
fn forwarded_hosts_accepts_unquoted_addresses() {
|
|
1992
|
+
for field in [
|
|
1993
|
+
"for=192.0.2.43:47011",
|
|
1994
|
+
"for=[2001:db8::1]",
|
|
1995
|
+
"for=[2001:db8::1]:4711;proto=https",
|
|
1996
|
+
] {
|
|
1997
|
+
assert_eq!(forwarded_hosts(field), Some(vec![]), "{field:?}");
|
|
1998
|
+
}
|
|
1999
|
+
assert_eq!(
|
|
2000
|
+
forwarded_hosts("for=192.0.2.43:47011;host=other.example"),
|
|
2001
|
+
Some(vec!["other.example".to_string()])
|
|
2002
|
+
);
|
|
2003
|
+
}
|
|
2004
|
+
|
|
2005
|
+
#[test]
|
|
2006
|
+
fn forwarded_hosts_rejects_malformed_fields() {
|
|
2007
|
+
for field in [
|
|
2008
|
+
"host",
|
|
2009
|
+
"host=",
|
|
2010
|
+
"=a.example",
|
|
2011
|
+
"host=a.example host=other.example",
|
|
2012
|
+
r#"host="a.example"host=other.example"#,
|
|
2013
|
+
r#"ext="unterminated;host=other.example"#,
|
|
2014
|
+
"ext=\"trailing\\",
|
|
2015
|
+
r#"ext=bare"quote;host=other.example"#,
|
|
2016
|
+
"ext=bad\\escape;host=other.example",
|
|
2017
|
+
"ext=bad/value;host=other.example",
|
|
2018
|
+
"höst=a.example",
|
|
2019
|
+
"ext=\"line\rbreak\";host=a.example",
|
|
2020
|
+
"ext=\"line\nbreak\";host=a.example",
|
|
2021
|
+
"ext=\"escaped\\\nbreak\";host=a.example",
|
|
2022
|
+
] {
|
|
2023
|
+
assert!(forwarded_hosts(field).is_none(), "{field:?}");
|
|
2024
|
+
}
|
|
2025
|
+
}
|
|
2026
|
+
|
|
2027
|
+
#[test]
|
|
2028
|
+
fn host_header_checks_every_forwarded_host() {
|
|
2029
|
+
let request = |value: &str| HttpRequest {
|
|
2030
|
+
method: "GET".into(),
|
|
2031
|
+
url: "https://api.example.com/x".into(),
|
|
2032
|
+
headers: vec![("Forwarded".into(), value.into())],
|
|
2033
|
+
body: None,
|
|
2034
|
+
insecure: false,
|
|
2035
|
+
max_response: 0,
|
|
2036
|
+
};
|
|
2037
|
+
for value in [
|
|
2038
|
+
"host=api.example.com",
|
|
2039
|
+
r#"host="api.exam\ple.com""#,
|
|
2040
|
+
r#"ext="hello;host=other.example";host=api.example.com"#,
|
|
2041
|
+
r#"ext="hello,host=other.example""#,
|
|
2042
|
+
"for=192.0.2.1;proto=https",
|
|
2043
|
+
r#"host=api.example.com,for=192.0.2.2;host="api.example.com:443""#,
|
|
2044
|
+
] {
|
|
2045
|
+
assert!(check_host_header(&request(value)).is_ok(), "{value}");
|
|
2046
|
+
}
|
|
2047
|
+
for value in [
|
|
2048
|
+
"host=other.example",
|
|
2049
|
+
"host=api.example.com,host=other.example",
|
|
2050
|
+
"host=api.example.com;host=other.example",
|
|
2051
|
+
r#"ext="hello;host=api.example.com";host=other.example"#,
|
|
2052
|
+
r#"host="other\.example""#,
|
|
2053
|
+
r#"ext="unterminated;host=api.example.com"#,
|
|
2054
|
+
] {
|
|
2055
|
+
let err = check_host_header(&request(value)).unwrap_err();
|
|
2056
|
+
assert_eq!(err.kind(), std::io::ErrorKind::PermissionDenied, "{value}");
|
|
2057
|
+
}
|
|
2058
|
+
}
|
|
2059
|
+
|
|
1853
2060
|
#[test]
|
|
1854
2061
|
fn check_url_safe_allows_public_hosts() {
|
|
1855
2062
|
for u in [
|
|
@@ -1384,6 +1384,14 @@ fn curl_path_credential_stays_inside_its_prefix() {
|
|
|
1384
1384
|
"/v1/projects/alpha/..%2Fbeta/items",
|
|
1385
1385
|
"/v1/projects/alpha/..%2Fbeta/items",
|
|
1386
1386
|
),
|
|
1387
|
+
(
|
|
1388
|
+
"/v1/projects/alpha/..;/beta/items",
|
|
1389
|
+
"/v1/projects/alpha/..;/beta/items",
|
|
1390
|
+
),
|
|
1391
|
+
(
|
|
1392
|
+
"/v1/projects/alpha/..;x=1/beta/items",
|
|
1393
|
+
"/v1/projects/alpha/..;x=1/beta/items",
|
|
1394
|
+
),
|
|
1387
1395
|
] {
|
|
1388
1396
|
let out = shell.run(&format!("curl -s '{base}{path}'")).await;
|
|
1389
1397
|
assert_eq!(out.status, 0, "{path}: {}", out.stderr);
|
|
@@ -1443,6 +1451,187 @@ fn curl_refuses_a_host_header_that_names_another_host() {
|
|
|
1443
1451
|
}));
|
|
1444
1452
|
}
|
|
1445
1453
|
|
|
1454
|
+
#[test]
|
|
1455
|
+
fn curl_refuses_a_forwarded_host_that_names_another_host() {
|
|
1456
|
+
let (rt, local) = rt();
|
|
1457
|
+
rt.block_on(local.run_until(async {
|
|
1458
|
+
let base = start_target_echo_server().await;
|
|
1459
|
+
let authority = base.strip_prefix("http://").unwrap();
|
|
1460
|
+
let mut shell = Shell::builder()
|
|
1461
|
+
.allow_url(&base)
|
|
1462
|
+
.credential(
|
|
1463
|
+
format!("{base}/"),
|
|
1464
|
+
strands_shell::CredKind::Bearer,
|
|
1465
|
+
"host-token",
|
|
1466
|
+
)
|
|
1467
|
+
.build()
|
|
1468
|
+
.unwrap();
|
|
1469
|
+
for header in [
|
|
1470
|
+
"X-Forwarded-Host: other.example.test".to_string(),
|
|
1471
|
+
format!("X-Forwarded-Host: {authority}, other.example.test"),
|
|
1472
|
+
"Forwarded: host=other.example.test".to_string(),
|
|
1473
|
+
"Forwarded: for=192.0.2.1;host=\"other.example.test\"".to_string(),
|
|
1474
|
+
"Forwarded: note=\"a;host=ignored.example\";host=other.example.test".to_string(),
|
|
1475
|
+
format!("Forwarded: host={authority}, host=\"other.example.test\""),
|
|
1476
|
+
// Header names match in any case.
|
|
1477
|
+
"x-forwarded-host: other.example.test".to_string(),
|
|
1478
|
+
"FORWARDED: HOST=other.example.test".to_string(),
|
|
1479
|
+
] {
|
|
1480
|
+
let out = shell
|
|
1481
|
+
.run(&format!("curl -s -H '{header}' {base}/items"))
|
|
1482
|
+
.await;
|
|
1483
|
+
assert_eq!(out.status, 1, "{header}: {}", out.stderr);
|
|
1484
|
+
assert_eq!(out.stdout, "", "{header}");
|
|
1485
|
+
assert!(
|
|
1486
|
+
out.stderr.contains("does not name the host of the URL"),
|
|
1487
|
+
"{header}: {}",
|
|
1488
|
+
out.stderr
|
|
1489
|
+
);
|
|
1490
|
+
}
|
|
1491
|
+
// Headers that name the URL's host, or carry no host, go out.
|
|
1492
|
+
for header in [
|
|
1493
|
+
format!("X-Forwarded-Host: {authority}"),
|
|
1494
|
+
format!("Forwarded: host={authority};proto=http"),
|
|
1495
|
+
"Forwarded: for=192.0.2.1".to_string(),
|
|
1496
|
+
"Forwarded: for=192.0.2.1;note=\"a;host=other.example.test\"".to_string(),
|
|
1497
|
+
"Forwarded: for=192.0.2.1;note=\"a,host=other.example.test\"".to_string(),
|
|
1498
|
+
format!("Forwarded: note=\"a;host=ignored.example\";host=\"{authority}\""),
|
|
1499
|
+
format!(
|
|
1500
|
+
"Forwarded: host=\"127\\.0.0.1:{}\"",
|
|
1501
|
+
authority.rsplit_once(':').unwrap().1
|
|
1502
|
+
),
|
|
1503
|
+
// Unquoted addresses are common, though RFC 7239 wants them quoted.
|
|
1504
|
+
"Forwarded: for=192.0.2.43:47011".to_string(),
|
|
1505
|
+
"Forwarded: for=[2001:db8::1]".to_string(),
|
|
1506
|
+
] {
|
|
1507
|
+
let out = shell
|
|
1508
|
+
.run(&format!("curl -s -H '{header}' {base}/items"))
|
|
1509
|
+
.await;
|
|
1510
|
+
assert_eq!(out.status, 0, "{header}: {}", out.stderr);
|
|
1511
|
+
assert!(
|
|
1512
|
+
out.stdout.ends_with("authorization=Bearer host-token"),
|
|
1513
|
+
"{header}: {}",
|
|
1514
|
+
out.stdout
|
|
1515
|
+
);
|
|
1516
|
+
}
|
|
1517
|
+
}));
|
|
1518
|
+
}
|
|
1519
|
+
|
|
1520
|
+
#[test]
|
|
1521
|
+
fn curl_empty_host_header_removes_it() {
|
|
1522
|
+
let (rt, local) = rt();
|
|
1523
|
+
rt.block_on(local.run_until(async {
|
|
1524
|
+
let base = start_target_echo_server().await;
|
|
1525
|
+
let authority = base.strip_prefix("http://").unwrap();
|
|
1526
|
+
let mut shell = Shell::builder().allow_url(&base).build().unwrap();
|
|
1527
|
+
// Shell removes the empty override but still derives Host from the URL.
|
|
1528
|
+
// System curl omits Host entirely for this option.
|
|
1529
|
+
let out = shell.run(&format!("curl -s -H 'Host:' {base}/items")).await;
|
|
1530
|
+
assert_eq!(out.status, 0, "{}", out.stderr);
|
|
1531
|
+
assert_eq!(
|
|
1532
|
+
out.stdout,
|
|
1533
|
+
format!("target=/items host={authority} authorization=none")
|
|
1534
|
+
);
|
|
1535
|
+
}));
|
|
1536
|
+
}
|
|
1537
|
+
|
|
1538
|
+
#[test]
|
|
1539
|
+
fn curl_content_type_removal_preserves_post_defaults_and_overrides() {
|
|
1540
|
+
let (rt, local) = rt();
|
|
1541
|
+
rt.block_on(local.run_until(async {
|
|
1542
|
+
let (mut shell, base) = shell_with_server().await;
|
|
1543
|
+
for (args, expected) in [
|
|
1544
|
+
("-d a=b", Some("application/x-www-form-urlencoded")),
|
|
1545
|
+
("-d a=b -H 'Content-Type: text/plain'", Some("text/plain")),
|
|
1546
|
+
("-d a=b -H 'Content-Type:'", None),
|
|
1547
|
+
("-H 'cOnTeNt-TyPe: ' -d a=b", None),
|
|
1548
|
+
(
|
|
1549
|
+
"-H 'Content-Type:' -H 'Content-Type: text/plain' -d a=b",
|
|
1550
|
+
Some("text/plain"),
|
|
1551
|
+
),
|
|
1552
|
+
] {
|
|
1553
|
+
let out = shell.run(&format!("curl -s {args} {base}/echo")).await;
|
|
1554
|
+
assert_eq!(out.status, 0, "{args}: {}", out.stderr);
|
|
1555
|
+
assert!(out.stdout.contains("body=a=b"), "{args}: {}", out.stdout);
|
|
1556
|
+
let content_type = out
|
|
1557
|
+
.stdout
|
|
1558
|
+
.lines()
|
|
1559
|
+
.find_map(|line| line.strip_prefix("content-type="));
|
|
1560
|
+
assert_eq!(content_type, expected, "{args}: {}", out.stdout);
|
|
1561
|
+
}
|
|
1562
|
+
}));
|
|
1563
|
+
}
|
|
1564
|
+
|
|
1565
|
+
#[test]
|
|
1566
|
+
fn curl_refuses_malformed_forwarded_headers() {
|
|
1567
|
+
let (rt, local) = rt();
|
|
1568
|
+
rt.block_on(local.run_until(async {
|
|
1569
|
+
let base = start_target_echo_server().await;
|
|
1570
|
+
let mut shell = Shell::builder().allow_url(&base).build().unwrap();
|
|
1571
|
+
for value in [
|
|
1572
|
+
"host=\"unterminated",
|
|
1573
|
+
"note=\"dangling\\",
|
|
1574
|
+
"note=\"value\"host=other.example.test",
|
|
1575
|
+
] {
|
|
1576
|
+
let out = shell
|
|
1577
|
+
.run(&format!("curl -s -H 'Forwarded: {value}' {base}/items"))
|
|
1578
|
+
.await;
|
|
1579
|
+
assert_eq!(out.status, 1, "{value}: {}", out.stderr);
|
|
1580
|
+
assert!(out.stdout.is_empty(), "{value}: {}", out.stdout);
|
|
1581
|
+
assert!(
|
|
1582
|
+
out.stderr.contains("access denied"),
|
|
1583
|
+
"{value}: {}",
|
|
1584
|
+
out.stderr
|
|
1585
|
+
);
|
|
1586
|
+
}
|
|
1587
|
+
}));
|
|
1588
|
+
}
|
|
1589
|
+
|
|
1590
|
+
#[test]
|
|
1591
|
+
fn curl_query_credential_goes_ahead_of_a_fragment() {
|
|
1592
|
+
let (rt, local) = rt();
|
|
1593
|
+
rt.block_on(local.run_until(async {
|
|
1594
|
+
let base = start_server().await;
|
|
1595
|
+
let dir = TestDir::new("lsh_query_cred_fragment_test");
|
|
1596
|
+
let config_path = dir.join("query_cred.toml");
|
|
1597
|
+
std::fs::write(
|
|
1598
|
+
&config_path,
|
|
1599
|
+
format!(
|
|
1600
|
+
r#"
|
|
1601
|
+
[[cred]]
|
|
1602
|
+
url = "{base}/"
|
|
1603
|
+
kind = "query"
|
|
1604
|
+
api_key = "fragment-key"
|
|
1605
|
+
param = "api_key"
|
|
1606
|
+
"#
|
|
1607
|
+
),
|
|
1608
|
+
)
|
|
1609
|
+
.unwrap();
|
|
1610
|
+
let mut shell = Shell::builder()
|
|
1611
|
+
.allow_url(&base)
|
|
1612
|
+
.config_file(&config_path)
|
|
1613
|
+
.unwrap()
|
|
1614
|
+
.build()
|
|
1615
|
+
.unwrap();
|
|
1616
|
+
for url in [format!("{base}/echo#part"), format!("{base}/echo?a=1#part")] {
|
|
1617
|
+
let out = shell.run(&format!("curl -s '{url}'")).await;
|
|
1618
|
+
assert_eq!(out.status, 0, "{url}: {}", out.stderr);
|
|
1619
|
+
assert!(
|
|
1620
|
+
out.stdout.contains("query_api_key=fragment-key"),
|
|
1621
|
+
"{url}: {}",
|
|
1622
|
+
out.stdout
|
|
1623
|
+
);
|
|
1624
|
+
// The URL's own query survives next to the added parameter.
|
|
1625
|
+
assert_eq!(
|
|
1626
|
+
out.stdout.contains("query_a=1"),
|
|
1627
|
+
url.contains("?a=1"),
|
|
1628
|
+
"{url}: {}",
|
|
1629
|
+
out.stdout
|
|
1630
|
+
);
|
|
1631
|
+
}
|
|
1632
|
+
}));
|
|
1633
|
+
}
|
|
1634
|
+
|
|
1446
1635
|
// ── Options the Strands harness `web_fetch` tool sends ──────────────
|
|
1447
1636
|
|
|
1448
1637
|
#[test]
|
|
@@ -1829,6 +2018,19 @@ fn curl_max_time_zero_and_huge_are_no_limit() {
|
|
|
1829
2018
|
}));
|
|
1830
2019
|
}
|
|
1831
2020
|
|
|
2021
|
+
#[test]
|
|
2022
|
+
fn curl_empty_user_agent_header_removes_the_default() {
|
|
2023
|
+
let (rt, local) = rt();
|
|
2024
|
+
rt.block_on(local.run_until(async {
|
|
2025
|
+
let (mut shell, base) = shell_with_server().await;
|
|
2026
|
+
let out = shell
|
|
2027
|
+
.run(&format!("curl -H 'User-Agent:' {base}/echo"))
|
|
2028
|
+
.await;
|
|
2029
|
+
assert_eq!(out.status, 0, "{}", out.stderr);
|
|
2030
|
+
assert!(!out.stdout.contains("user-agent="), "{}", out.stdout);
|
|
2031
|
+
}));
|
|
2032
|
+
}
|
|
2033
|
+
|
|
1832
2034
|
#[test]
|
|
1833
2035
|
fn curl_empty_user_agent_sends_none() {
|
|
1834
2036
|
let (rt, local) = rt();
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|