AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Terminal quotes4/11/2024 ![]() Is quote in /etc/bash.bashrc? yes/no, etc.I have $i (need to look into the source for what this sources, but in this case it's the files /etc/profile.d/*.sh if any (and if readable) and /etc/bash.bashrc. What are the files sourced by /etc/profile? grep ']\.]' /etc/profile How did I determine this? using a little of heuristic:Ĭheck if quote appears in /etc/profile: grep '\bquote\b' /etc/profile ![]() Parkes, and Laurie MacDonald as producer, John Williams in charge of musical score, and Janusz Kamiski as head of cinematography. I've just checked on an Ubuntu 12.04 system, and the quote function is defined in /etc/bash_completion, sourced by /etc/bash.bashrc, itself sourced by /etc/profile. The Terminal is a TV program that appeared on TV in 1970. So in the example, terminal first start to executes the code.prints a on the 1st line, then it moves to the next character. This quote function is probably a vendor/distribution-specific (read Debian-specific) and is probably not portable at all, and might even change in future releases.Įdit. echo anaanacnbncctddnese a aa ac b cc dd ese In the above example, n represents new line.For this Syntax codencode1, terminal first prints the code on first line and on the next line, it prints code1. ![]() This quote thing is used internally by some obscure stuff we don't even want to know about. In fact, even this is very rarely used, there are always better strategies for high-level stuff as we, users, usually do. ![]() I would never use this function! If you need to quote stuff so as to be safely usable by a shell, please use printf with the %q modifier, as: printf '%q\n' "Hello my friend I like 'single quotes' as well as \"double quotes\"" Quote is a function that is defined (here on my Debian system, but I guess it's the same on Ubuntu) in the file /usr/share/bash-completion/bash_completion, which itself is sourced by /etc/bash.bashrc at Bash's startup. Thats not the case for the terminal height - if you have a large list of quotes that exceeds the terminal height, you can scroll vertically using the up and down keyboard arrow keys. ![]()
0 Comments
Read More
Leave a Reply. |