#!/bin/bash # Stub interpreter used by the Phase 1 characterization tests. # Records argv (one invocation per line) and replays a configured stdout/exit code. if [ -n "${STUB_ARGV_LOG:-}" ]; then printf '%s\n' "$*" >> "$STUB_ARGV_LOG" fi if [ -n "${STUB_STDOUT:-}" ]; then printf '%s\n' "$STUB_STDOUT" fi exit "${STUB_EXIT:-0}"