How to come out of dquote prompt in Terminal - macOS/Linux

When I was recently working on my Mac Terminal with some usual commands on zsh shell, suddenly after running the command I ended up in a dquote> prompt, this seems weird at first, but soon I realised what I had done,

% echo "Hello there! how are you?

As you can see when you execute the above echo statement in the macOS/Linux Terminal, the zsh/bash prompt is not returned instead you see dquote.

What does dquote> means?

If you have a double-quote in your command and you do not close it and execute the command, you end up in dquote, what it means is that shell is waiting for a closing double-quote. So you can write what ever you want and add as many line breaks, once you add a double-quote and press enter the command will get executed and prompt is returned.

% echo "Hello,
dquote> how are
dquote> you 
dquote> doing 
dquote> today!"

how are


How to come out of dquote?

How to come out of Terminal dquote prompt

dquote implies the shell (zsh/bash etc) is waiting for a closing double-quote, so just add a double-quote and press enter!

exiting dquote prompt terminal
Try Out Code2care Dev Tools:


#Android #Java #Linux #Microsoft #Google #Python #MacOS #Notepad++ #Microsoft Teams #CSS #PHP #SharePoint #Html #Linux #C-Program #Bootstrap #jQuery #Sublime #Android-Studio #Facebook #Eclipse #WhatsApp #News #MySQL #Json #HowTos #JavaScript #FTP #S3


Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and Software Developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include Learnings, Tutorials, Trouble-Shooting steps, Video Tutorials, Code Snippets, How Tos, Blogs, Articles, etc.
🎉 We are celebrating the 10th years of Code2care! Thank you for all your support! We hope we made a difference.
We strong support Gender Equality & Diversity.

We stand in solidarity with Ukraine - Make a donation to UNHCR -