mirror of
https://github.com/Hilbis/Hilbish
synced 2025-04-03 04:03:25 +00:00
fix: dont replace ~ if in quotes; replace ~ with $HOME
This commit is contained in:
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…
x
Reference in New Issue
Block a user