I get "dquote>" as a result of executing a program in linux shell

LinuxShellQuotes

Linux Problem Overview


When I execute a script in a Linux shell, I get this output:

dquote>

What does this mean?

Linux Solutions


Solution 1 - Linux

It means you've executed a line of code with only one double-quote character, like this:

echo "Hello

The shell is waiting for the other quote.

Solution 2 - Linux

If you have an ! in a quoted string like password="this1smyp4ssword!" it will also end with dquote>

Solution 3 - Linux

When you have "dquote>" on terminal, do not worry just press double quotes button on keyboard for EXIT:

"

Screenshot example:

enter image description here

Solution 4 - Linux

dquote> 

The above prompt surely means that you have to de-quote the starting of the quote, i.e. ", with another quote: ".

Please write a letter i.e another: " in the dquote> prompt.

Solution 5 - Linux

The shell is waiting for the other quote of an unfinished command.

CTRL+G will leave that state and undo the command.

Entering " and pressing enter is an other way to leave but it will execute something you may had mistyped.

Solution 6 - Linux

If we have an exclamation symbol in the password, for example like password="passwordhas!symbol" it will also end with dquote>

To get rid of dquote, use a single quote, as shown below. password='passwordhas!symbol'

Solution 7 - Linux

NB: check the double quotes in your line are ordinary ASCII double quotes.

I had a command cut from an e-mail, and was getting the 'dquote>' prompt. It turns out the text editors had replaced the final double quote with a double backquote, which can look almost identical. If in doubt, delete and retype all double quotes.

Solution 8 - Linux

Use "Hello world"'!'""

Solution 9 - Linux

Try this ' and enter. it worked for me

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionLeonardoView Question on Stackoverflow
Solution 1 - LinuxRichieHindleView Answer on Stackoverflow
Solution 2 - LinuxRico NeitzelView Answer on Stackoverflow
Solution 3 - LinuxNamelessView Answer on Stackoverflow
Solution 4 - LinuxRudhisundar BeuraView Answer on Stackoverflow
Solution 5 - LinuxPierre MaouiView Answer on Stackoverflow
Solution 6 - LinuxGangadhar ReddyView Answer on Stackoverflow
Solution 7 - LinuxRichard KirkView Answer on Stackoverflow
Solution 8 - Linuxyz securitiesView Answer on Stackoverflow
Solution 9 - LinuxOxkrView Answer on Stackoverflow