Zsh-autoquoter makes shell quoting slightly less annoying
ianthehenry.com
Zsh-autoquoter makes shell quoting slightly less annoying
1–10 of 27 posts
Re: Zsh-autoquoter makes shell quoting slightly less annoying
#2Re: Zsh-autoquoter makes shell quoting slightly less annoying
#3Re: Zsh-autoquoter makes shell quoting slightly less annoying
#4Is something like this available for bash?
Re: Zsh-autoquoter makes shell quoting slightly less annoying
#5I am still afraid to switch from Bash to Zsh, because these are things I don't fully understand and will find it hard to debug if _something_ breaks. Is something like this available for bash?
Bash came out in 1989. Zsh came out in 1990.
Re: Zsh-autoquoter makes shell quoting slightly less annoying
#6I am still afraid to switch from Bash to Zsh, because these are things I don't fully understand and will find it hard to debug if _something_ breaks. Is something like this available for bash?
It's puzzling to me that people still think of zsh as "that newfangled shell I'm not sure about yet". Bash came out in 1989. Zsh came out in 1990.
i don't think it's about the newfangledness; i think it's about the potential for subtle differences in syntax which scare people away from zsh.
Re: Zsh-autoquoter makes shell quoting slightly less annoying
#7The shell quoting rabbithole goes pretty deep, especially when you want to preserve the whitespace within arguments. Has this been solved generally yet? I suspect it requires full knowledge of whatever shell is running on the other side of SSH.
Re: Zsh-autoquoter makes shell quoting slightly less annoying
#8The shell quoting rabbithole goes pretty deep, especially when you want to preserve the whitespace within arguments. Has this been solved generally yet? I suspect it requires full knowledge of whatever shell is running on the other side of SSH.
> ssh user@host awk '{print $1}' file.txt
And have the "$1" quoted or escaped so that it's interpreted as an awk keyword on the remote system. But what if I actually want it interpreted as a shell variable that should be expanded on the local or remote system? How does it know?
Why is shell quoting still so hard?
Re: Zsh-autoquoter makes shell quoting slightly less annoying
#9I am still afraid to switch from Bash to Zsh, because these are things I don't fully understand and will find it hard to debug if _something_ breaks. Is something like this available for bash?