I'm a zsh user, but one thing I miss from bash is /dev/tcp redirection. ~ echo /dev/tcp/google.com/80 ~ echo $? 0 ~ echo /dev/tcp/localhost/80 bash: connect: Network is unreachable bash: /dev/tcp/localhost/80: Network is unreachable ~ echo $? 1
Moving to zsh (2019)
21–30 of 45 posts
Re: Moving to zsh (2019)
#22Why is zsh forced on users anyway? Are there known issues with bash? I’m sure there are - anyone have a link?
Re: Moving to zsh (2019)
#23Why is zsh forced on users anyway? Are there known issues with bash? I’m sure there are - anyone have a link?
ZSH isn't GPL which may be important in the smaller non-Linux part of UNIX-like world. I would very much like to see ZSH in FreeBSD's base system already.
BTW, forced how?
Re: Moving to zsh (2019)
#24I've been using bash since the early 90s and I'm now in my 40s so I think at this point I just have to accept that I will never use another shell. On Macs, the current version of bash can be installed from Homebrew and you can set it as your default shell in the SysPrefs, in Users > Right-click you > Advanced
Re: Moving to zsh (2019)
#25Why is zsh forced on users anyway? Are there known issues with bash? I’m sure there are - anyone have a link?
> Why is zsh forced on users anyway? Are there known issues with bash? ZSH isn't GPL which may be important in the smaller non-Linux part of UNIX-like world. I would very much like to see ZSH in FreeBSD's base system already. BTW, forced how?
Hardly insurmountable, but the change was a “forced” part of the upgrade.
Re: Moving to zsh (2019)
#26I'm a zsh user, but one thing I miss from bash is /dev/tcp redirection. ~ echo /dev/tcp/google.com/80 ~ echo $? 0 ~ echo /dev/tcp/localhost/80 bash: connect: Network is unreachable bash: /dev/tcp/localhost/80: Network is unreachable ~ echo $? 1
Why? There’s nc.
We need a friendlier netcat, with better output. Call it netdog.
Re: Moving to zsh (2019)
#27But I could never get auto complete for rsync to work. I have some hosts in ~/.ssh/config (think "Hostname prod01" etc) , and in bash auto complete works for ssh, scp and rsnyc ("rsync prod01:someFile .")
In zsh, this only works for scp and ssh, but not rsync, and I haven't found a way to make this work.
Does anyone know how to get it to work like in bash?
Re: Moving to zsh (2019)
#28First thing I do for any *nix install is immediately install Fish. Like many younger computer users I prefer rainbow barf.
Re: Moving to zsh (2019)
#29Earlier quoted context omitted.
> Why is zsh forced on users anyway? Are there known issues with bash? ZSH isn't GPL which may be important in the smaller non-Linux part of UNIX-like world. I would very much like to see ZSH in FreeBSD's base system already. BTW, forced how?
There was a MacOS update that set everyone’s shell to zsh instead of the default (ancient) bash. Hardly insurmountable, but the change was a “forced” part of the upgrade.
I'm not too comfortable playing devil's advocate here as Apple really does force shitty changes on users. But this isn't one of those cases.
Re: Moving to zsh (2019)
#30I'm a zsh user, but one thing I miss from bash is /dev/tcp redirection. ~ echo /dev/tcp/google.com/80 ~ echo $? 0 ~ echo /dev/tcp/localhost/80 bash: connect: Network is unreachable bash: /dev/tcp/localhost/80: Network is unreachable ~ echo $? 1
I think that’s Linux-only, right?
But it's not. It's a bash built in pseudo file. So it should work in bash on other operating systems.