When I execute a script in a Linux shell, I get this output:
dquote> What does this mean?
10 Answers
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.
6If you have an ! in a quoted string like password="this1smyp4ssword!" it will also end with dquote>
When you have "dquote>" on terminal, do not worry just press double quotes button on keyboard for EXIT:
" Screenshot example:
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.
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.
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'
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.
Use "Hello world"'!'""
1Try this ' and enter. it worked for me
1It might mean that you have escaped the ending double quotes while running the command. like:-
echo "Hello\" So you need to provide one more double quote.
