()
| 730 | } |
| 731 | |
| 732 | function getShellInfoLine(): string { |
| 733 | const shell = process.env.SHELL || 'unknown' |
| 734 | const shellName = shell.includes('zsh') |
| 735 | ? 'zsh' |
| 736 | : shell.includes('bash') |
| 737 | ? 'bash' |
| 738 | : shell |
| 739 | if (env.platform === 'win32') { |
| 740 | return `Shell: ${shellName} (use Unix shell syntax, not Windows — e.g., /dev/null not NUL, forward slashes in paths)` |
| 741 | } |
| 742 | return `Shell: ${shellName}` |
| 743 | } |
| 744 | |
| 745 | export function getUnameSR(): string { |
| 746 | // os.type() and os.release() both wrap uname(3) on POSIX, producing output |
no outgoing calls
no test coverage detected