close 1022758 thanks Hi,
* Tanmay [Tue Oct 25, 2022 at 03:20:54PM +0530]: > When I type `echo 'Hello!'`, it prints `Hello` but when I use double quotes > instead of single quotes, there is no output and the shell waits for the > quote to end. > Here is a transcript! > > $ echo 'Hello!' > Hello > $ echo "Hello!" > dquote> > > I suggest that the shell should recognise the quotes. > I am using Ubuntu 20.04 and kernel 5.15.0-52-generic. "!" has a special meaning in zsh, so this behaves as expected and documented. You need to use single quotes or drop "!" from $histchars, if you want to disable this behavior. See section `QUOTING` in `man zshall`, quoting from there | Inside double quotes (""), parameter and command substitution occur, | and `\' quotes the characters `\', ``', `"', `$', and the first | character of $histchars (default `!'). regards -mika-
signature.asc
Description: PGP signature