You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
process.stdin never delivers piped input and process.argv does not contain script arguments #49
stdin.ts node : stdin bytes=6 content="l1\nl2\n"
slice: stdin bytes=0 content=""
argv.ts node : {"argvLength":4,"tail":["a","b"]}
slice run … a b : {"argvLength":1,"tail":[]}
slice run … -- a b : {"argvLength":1,"tail":[]}
node:readline over process.stdin (for await (const line of rl)) likewise yields no lines, while the same interface over Readable.from([...]) works.
What is wrong
Data piped to the process is never emitted on process.stdin ('data' does not fire; 'end' fires immediately with nothing).
process.argv has length 1; neither the script path nor arguments after it are present, and I found no CLI syntax that forwards them.
COMPATIBILITY.md lists process.stdin and process.argv as supported. If stdin and argv are intentionally withheld from the isolate, an explicit capability (and a note in the matrix) would make that clear; today the script just sees empty input.
Environment
Slice v0.10.7, commit ea7c70c, built with cargo +1.96.0 build --release --locked --bin slice
Reference: Node.js v24.22.2 (same script, same machine)
Activity
siktec-lab commentedon Nov 11, 2026
Fixed in PR #65 (
v0.10.9):-e/--evaland-p/--printinline script execution.-c/--check(slice check) syntax and TypeScript validation without execution.-v/-V/--versionflags and stdin script execution (slice -and piped stdin).process.argv([execPath, scriptPath, ...scriptArgs]) and propagated non-zero exit codes to the OS.