I get "dquote>" as a result of executing a program in linux shell
LinuxShellQuotesLinux 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:
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