* Quotes a command and adds `< /dev/null` as a shell redirect on eval, rather than * as an eval argument. This is critical for pipe commands where we can't parse the * pipe boundary (e.g., commands with $(), backticks, or control structures). * * Using `singleQuoteForEval(cmd) + ' < /dev/null'`
(command: string)
| 260 | * → eval concatenates args to 'cmd < /dev/null', redirect applies to LAST pipe command |
| 261 | */ |
| 262 | function quoteWithEvalStdinRedirect(command: string): string { |
| 263 | return singleQuoteForEval(command) + ' < /dev/null' |
| 264 | } |
| 265 | |
| 266 | /** |
| 267 | * Single-quote a string for use as an eval argument. Escapes embedded single |
no test coverage detected