When I execute a script in a Linux shell, I get this output:
dquote>
What does this mean?
When I execute a script in a Linux shell, I get this output:
dquote>
What does this mean?
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.
If you have an !
in a quoted string like password="this1smyp4ssword!"
it will also end with dquote>
zsh 5.7.1 (x86_64-apple-darwin19.0)
–
Orcutt \!
–
Renaterenato password="this1smyp4ssword\!"
, it will not do dquote
–
Jamesy 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
but also cmdsubst
, for
, etc, where you might not know how to close it); doesn't execute the command you almost certainly wish to cancel; and works in most shells! –
Transgression 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'
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.
You need to use a pair of double quotes in your text.
The shell is waiting for you to add a second double quote "
, hence the prompt dquote>
. Add and this prompt will go away.
The same applies for single quotes '
It 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.
This just happened to me and when I typed " and pressed enter, it led to > being shown. If this happens to you, just press control-c
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.
You need to use single quotes instead of double quotes and make sure they are closed.
"Hello" should be 'Hello'
'Hello should be 'Hello'
© 2022 - 2024 — McMap. All rights reserved.