diff --git a/acceptance/bundle/exec/basic/output.txt b/acceptance/bundle/exec/basic/output.txt index 6056a8c9e..ef56f139f 100644 --- a/acceptance/bundle/exec/basic/output.txt +++ b/acceptance/bundle/exec/basic/output.txt @@ -3,7 +3,7 @@ hello, world >>> [CLI] bundle exec -- --help -Error: starting "--help" failed: exec: "--help": executable file not found in $PATH +Error: starting "--help" failed: exec: "--help": executable file not found in PATH Exit code: 1 diff --git a/acceptance/bundle/exec/basic/test.toml b/acceptance/bundle/exec/basic/test.toml index ca7d069ae..81f2393ae 100644 --- a/acceptance/bundle/exec/basic/test.toml +++ b/acceptance/bundle/exec/basic/test.toml @@ -1,3 +1,7 @@ +[[Repls]] +Old = "\\$PATH" +New = "PATH" + [[Repls]] Old = "%PATH%" -New = "$PATH" +New = "PATH" diff --git a/acceptance/bundle/exec/cmd-not-found/output.txt b/acceptance/bundle/exec/cmd-not-found/output.txt index 8344948b4..e6284234e 100644 --- a/acceptance/bundle/exec/cmd-not-found/output.txt +++ b/acceptance/bundle/exec/cmd-not-found/output.txt @@ -1,5 +1,5 @@ >>> [CLI] bundle exec -- doesnotexist arg1 arg2 --flag1 --flag2 -Error: starting "doesnotexist arg1 arg2 --flag1 --flag2" failed: exec: "doesnotexist": executable file not found in $PATH +Error: starting "doesnotexist arg1 arg2 --flag1 --flag2" failed: exec: "doesnotexist": executable file not found in PATH Exit code: 1 diff --git a/acceptance/bundle/exec/cmd-not-found/script b/acceptance/bundle/exec/cmd-not-found/script index 4a5d442f3..0cefaea0c 100644 --- a/acceptance/bundle/exec/cmd-not-found/script +++ b/acceptance/bundle/exec/cmd-not-found/script @@ -1 +1 @@ -trace $CLI bundle exec -- doesnotexist arg1 arg2 --flag1 --flag2 +errcode trace $CLI bundle exec -- doesnotexist arg1 arg2 --flag1 --flag2 diff --git a/acceptance/bundle/exec/cmd-not-found/test.toml b/acceptance/bundle/exec/cmd-not-found/test.toml index ca7d069ae..81f2393ae 100644 --- a/acceptance/bundle/exec/cmd-not-found/test.toml +++ b/acceptance/bundle/exec/cmd-not-found/test.toml @@ -1,3 +1,7 @@ +[[Repls]] +Old = "\\$PATH" +New = "PATH" + [[Repls]] Old = "%PATH%" -New = "$PATH" +New = "PATH" diff --git a/acceptance/bundle/exec/cwd/test.toml b/acceptance/bundle/exec/cwd/test.toml new file mode 100644 index 000000000..a298217f2 --- /dev/null +++ b/acceptance/bundle/exec/cwd/test.toml @@ -0,0 +1,3 @@ +[[Repls]] +Old = '\\' +New = '/' diff --git a/cmd/bundle/exec.go b/cmd/bundle/exec.go index bbb8038b9..87cc9b929 100644 --- a/cmd/bundle/exec.go +++ b/cmd/bundle/exec.go @@ -55,7 +55,7 @@ Example usage: // // This is only useful for when the Databricks CLI is the child command, // since if we do not explicitly pass the profile, the CLI will use the - // profile configured in the bundle YAML configuration (if any). + // auth configured in the bundle YAML configuration (if any). if b.Config.Workspace.Profile != "" { env = append(env, "DATABRICKS_CONFIG_PROFILE="+b.Config.Workspace.Profile) }