Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/client-runtime/src/work-log/embeddedScripts.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ describe("embeddedScripts", () => {
});

it.each([
[`bash -Ec 'echo hi'`, "shellscript", "echo hi"],
[`sh -Cc 'echo hi'`, "shellscript", "echo hi"],
[`python3 -c 'print(1)'`, "python", "print(1)"],
[`py -3 -c 'print(1)'`, "python", "print(1)"],
[`"C:\\Program Files\\Python312\\python.exe" -c 'print(1)'`, "python", "print(1)"],
Expand Down
2 changes: 1 addition & 1 deletion packages/client-runtime/src/work-log/embeddedScripts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const flagIn =

const SHELL: Interpreter = {
language: "shellscript",
inline: (flag) => /^-[a-z]*c[a-z]*$/u.test(flag),
inline: (flag) => /^-[a-zA-Z]*c[a-zA-Z]*$/u.test(flag),
Comment thread
saphid marked this conversation as resolved.
Resolved
valueOptions: new Set(["-o", "-O", "--rcfile", "--init-file"]),
stdin: "without-script-file",
};
Expand Down
Loading