unix - What occurs when you type quotation mark " in shell terminal -


i have been searching web can't understand unix shell terminal doing when type quotation mark "

$ " 

and gives that

>  

where can enter text , commands. if enter again single quotation mark character " quit > prompt , go regular $ prompt.

this bash manual states:

3.1.2.3 double quotes

enclosing characters in double quotes (‘"’) preserves literal value of characters within quotes, exception of ‘$’, ‘’, ‘\’, and, when history expansion enabled, ‘!’. characters ‘$’ , ‘’ retain special meaning within double quotes (see shell expansions). backslash retains special meaning when followed 1 of following characters: ‘$’, ‘`’, ‘"’, ‘\’, or newline. within double quotes, backslashes followed 1 of these characters removed. backslashes preceding characters without special meaning left unmodified. double quote may quoted within double quotes preceding backslash. if enabled, history expansion performed unless ‘!’ appearing in double quotes escaped using backslash. backslash preceding ‘!’ not removed.

when type single double quote, bash waiting finish second double quote.


Comments

Popular posts from this blog

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -

python - How to create a legend for 3D bar in matplotlib? -