![]() This is how the prompt is used in most cases: cat > version-check.sh `readlink -f /bin/sh`"Įcho -n "Binutils: " ld -version | head -n1 | cut -d" " -f3. Seeing as the OP didn't know about the Secondary Prompt, I wanted to show the OP an example taken from the Linux From Scratch - Version 7.6 with SystemD book, and explain how this works. You confused a rounded quote with a single quote. ![]() And you can also correct it in your document so that future cut+pasting will work fine.Īs Everyone else has said, the OP has an unterminated string in your python statement. The fix is to change that character to an apostrophe - just retype it manually into bash from the keyboard. It prints " >" to prompt for further input, because it still thinks the original quote has not been closed. It does this to make the character look nicer on the screen, but bash doesn't recognize this character as a valid closing quote, so you run into the problem. The reason this probably happened is that when you first typed in the command to the document to save it for future reference, your word processor automatically converted the second apostrophe into a right single quotation mark. The difference is subtle - see this page for more details: ![]() Usually this doesn't make any difference, but in this case, the second quote character was inserted as a "right single quotation mark" ( ’) instead of an "apostrophe" ( '). ![]() You're probably cutting and pasting the command (or parts of it) from a document instead of typing it in manually. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |