We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 773fc17 commit 5210bf9Copy full SHA for 5210bf9
1 file changed
cli/exec.go
@@ -40,7 +40,8 @@ func ExecLine(line string) error {
40
if runtime.GOOS != "windows" {
41
for _, arg := range args {
42
if arg == "|" {
43
- result, err := exec.Command("bash", "-c", fmt.Sprintf("%s %v", os.Args[0], line)).Output()
+ fullCommand := fmt.Sprintf("%s %v", strings.Join(os.Args, " "), line)
44
+ result, err := exec.Command("bash", "-c", fullCommand).Output()
45
fmt.Print(string(result))
46
return err
47
}
0 commit comments