mirror of https://github.com/Hilbis/Hilbish
fix: dont replace ~ if in quotes; replace ~ with $HOME
parent
7dc2d99682
commit
f943a55940
2
main.go
2
main.go
|
@ -77,7 +77,7 @@ func main() {
|
||||||
quoted = !quoted
|
quoted = !quoted
|
||||||
// dont add back quotes
|
// dont add back quotes
|
||||||
//sb.WriteRune(r)
|
//sb.WriteRune(r)
|
||||||
} else if r == '~' {
|
} else if !quoted && r == '~' {
|
||||||
sb.WriteString(os.Getenv("HOME"))
|
sb.WriteString(os.Getenv("HOME"))
|
||||||
} else if !quoted && r == ' ' {
|
} else if !quoted && r == ' ' {
|
||||||
cmdArgs = append(cmdArgs, sb.String())
|
cmdArgs = append(cmdArgs, sb.String())
|
||||||
|
|
Loading…
Reference in New Issue