File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 1111 Mode is enabled
1212 ([ #166 ] ( https://github.com/go-task/task/issues/166 ) );
1313- Fix file timestamp issue when the file name has spaces
14- ([ #176 ] ( https://github.com/go-task/task/issues/176 ) ).
14+ ([ #176 ] ( https://github.com/go-task/task/issues/176 ) );
15+ - Mitigating path expanding issues on Windows
16+ ([ #170 ] ( https://github.com/go-task/task/pull/170 ) ).
1517
1618## v2.3.0 - 2019-01-02
1719
Original file line number Diff line number Diff line change 55 "errors"
66 "io"
77 "os"
8+ "path/filepath"
89 "strings"
910
1011 "mvdan.cc/sh/expand"
@@ -72,6 +73,7 @@ func IsExitError(err error) bool {
7273// Expand is a helper to mvdan.cc/shell.Fields that returns the first field
7374// if available.
7475func Expand (s string ) (string , error ) {
76+ s = filepath .ToSlash (s )
7577 s = strings .Replace (s , " " , `\ ` , - 1 )
7678 fields , err := shell .Fields (s , nil )
7779 if err != nil {
You can’t perform that action at this time.
0 commit comments