(sessionName: string, windowTarget: string | number, pane?: number)
| 182 | startupCommand: string, |
| 183 | shell = process.env.SHELL || '/bin/sh', |
| 184 | cwd?: string |
| 185 | ): string { |
| 186 | const interactiveCommand = `${startupCommand}; exec ${escapeForShell(shell)} -l`; |
| 187 | const command = `${escapeForShell(shell)} -lc ${escapeForShell(interactiveCommand)}`; |
| 188 | if (cwd === undefined) return command; |
| 189 | return `${escapeForShell('/bin/sh')} -c ${escapeForShell( |
| 190 | `cd ${escapeForShell(cwd)} && exec ${command}` |
| 191 | )}`; |
no test coverage detected