MCPcopy Index your code
hub / github.com/codeaashu/claude-code / isCommandSeparator

Function isCommandSeparator

src/utils/bash/bashPipeCommand.ts:227–229  ·  view source on GitHub ↗

* Checks if an operator is a command separator that starts a new command context. * After these operators, environment variable assignments are valid again.

(op: string)

Source from the content-addressed store, hash-verified

225 * After these operators, environment variable assignments are valid again.
226 */
227function isCommandSeparator(op: string): boolean {
228 return op === '&&' || op === '||' || op === ';'
229}
230
231/**
232 * Type guard to check if a parsed entry is an operator

Callers 1

buildCommandPartsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected