Results 599 comments of Wes McNamee

Because os.chdir is global. Not thread safe. It's not specific to the command.

> You paid too much attention to the os.chdir. It was just to show that no matter what’s the path you are you can pass via args to the cmd...

What to do in the case that the command doesn't accept a path. `ls` is an over simplified example. Better example may be `make`.

Just coming back to this, and I realized this has been asked for in various ways in several other issues, all of which dismissed in some form. #79, #109, #48,...

> By all means make a specific proposal! > > What about this, for example: > > ```go > script.At("/home/john").Exec("ls") > ``` > I do like that.

```bash ( cd "./project" make ) ```

https://gobyexample.com/goroutines Replace fmt.Println with running a shell command.

I'm not writing a program here to prove this feature is useful. It seems you don't believe that this feature is useful. I'll just close this and I'll go somewhere...

> If no one _has_ a problem that this feature solves, it's better not to write it. I agree that features that no one will use should not exist, it's...