Then a string variable in Bash has * in it, it lists the current directory. Why and how to I include a * in a string?  I'm trying to make a script that creates a sql-statement in a variable and when I tried to add a * to the string it went all bananas and added all the names of all the files in the current directory instead of *.I have tried to escape the character but it has been futile so far. I managed to reproduce the somewhat unexpected behavior with some more basic code.  #!/bin/bash  test="select * from cars" echo $test   When running the code (./test.sh) above on my wm i get(which is the content of the current folder with select before and with cars after select Desktop dev.sh Documents Downloads elasticsearch-7.0.1-amd64.deb examples.desktop getgoogle.sh IdeaProjects java_error_in_IDEA_21052.log java_error_in_IDEA_3238.log kafka_2.12-2.2.0 kafka_2.12-2.2.0.tgz kafka-connect Music output.txt Pictures Public snap spark-2.4.1-bin-hadoop2.7 spark-2.4.1-bin-hadoop2.7.tgz Templates test.sh test.txt Untitled.ipynb Videos from cars  Now I'm definitely not a bash expert and the answer is probably obvious to an expert but I have no idea what cause is and how to proceed.   Best regards Olle
For example:  me$ FOO="BAR * BAR" me$ echo $FOO BAR file1 file2 file3 file4 BAR   and using the \ escape character:  me$ FOO="BAR \* BAR" me$ echo $FOO BAR \* BAR   I'm obviously doing something stupid.  How do I get the output BAR * BAR?
Schrödingers MySQL table: exists, yet it does not new array.sty and colortbl.sty incompatibility? Does there exist a laser that is tunable over the whole visible spectrum? Does there exist a laser that is tunable over the whole visible spectrum? If so does there exist one that is solid state? This is to settle a score with my dumb workmates. Prove $\lim_{x\to0}\sqrt{4-x}=2$ using the precise definition of limits. (Epsilon-Delta) Prove $$\lim_{x\to0}\sqrt{4-x}=2$$ using the precise definition of limits. (Epsilon-Delta)  I am not sure how to link $0&lt;\left |x  \right |&lt;\delta$ with $\left |\sqrt{4-x}-2\right |&lt;\epsilon$ .  EDIT (Trying it out now)  I worked till here, then I basically got stuck. I've only been able to resolve this far  $$ d \mid n \Rightarrow \exists l \in \mathbb{Z}\; \textrm{such that} \; n=dl \Rightarrow x^{q^n} - x = x^{q^{dl}} - x.$$  I can't move forward. character "5" repeated in text fields, and system freezes I am running Ubuntu 15.10, with the latest updates.  When I type in a text field (google search, type name of file, etc..) the number 5 gets typed on its own and it keeps repeating until I press ESC and when I try to continue typing the number 5 resumes filling in the text field.  I have tried to set the keyboard repeat to zero, but does not help.  This does not happen all the time, sometimes if I shut down the computer it then behaves normally when I restart it, other times the computer becomes useless because I cannot type in any of the text fields.  Thanks Sal Why are my quotation marks causing an “unexpected token” error with this command? where is `cd` located? Is there any way to debug bash script without using echo and logging?  I'm talking about using breakpoints and stuff like that. How to disable command-Q for Quit? Is there any way to disable command+Q for quitting apps?  I tried adding this menuitem to the "Keyboard Shortcuts" preference pane (as ), and remapping it to command+option+Q (slightly harder to hit), and the menu item changed to show this, but command+Q still causes the app to quit.  I'm using OS X 10.7, but I'd happily upgrade to 10.8 if it fixed this.  The app I really want this for is Firefox, but if there was a solution that disabled command+Q for every app, that would be fine, too. Python analog of PHP's natsort function (sort a list using a "natural order" algorithm) Removing blocks from configuration files? Canned reasons for up/down vote (w/ example of how it would work) I'm annoyed by down voters that don't explain why they down voted a question or an answer. Although, at the same time, I understand that they . I think there is a middle ground, though, where the voter can remain anonymous, while the poster can get aggregated feedback on ways to improve the post.  Rather than having to imagine what it might be like, the current stackoverflow engine can emulate this rather effectively with the use of comments and the up-voting of those comments (essentially saying "I agree"). So I thought I would give it a try. The only difference is that in this testing post, you will always see the list of "canned responses" where as in the complete version, it will most likely be hidden in a popup (e.g. when you hover over the score of an answer/question). To try it out, simply up or down vote this question (or one of its answers), and press the up arrow next to the comment which best describes why are voting that way. For example, if you hate this idea, give this a down vote, and then press the up arrow near -1: I don't like this idea.  In addition to retaining anonymity, this will also save time for the voter so that they don't need to write out the comment. This wouldn't be required, obviously, and there could be a default option selected don't leave a reason. In addition, there could be a custom option which allows you type exactly why you are down-voting this way. Depending on the final implementation, this could either simply be converted to a comment automatically prefixed with -1:  or +1:; or, to retain anonymity, it would be added to this same list that shows the canned responses and how many users have voted that way.  Here are some ideas for the canned responses:  Question:   +1: Well formatted and thought out question. -1: It doesn't seem like enough time was spent trying to solve this issue on your own. -1: I don't like this idea. (Could be especially useful on meta.stackoverflow.com feature-request.) -1: No prior research/work. (Idea from .) -1: Poor question. Please see . -1: Doesn't contain code. (This would be useful on stackoverflow.com. Idea from )   Answer:   +1: Concise. +1: Insightful. +1: Worked for me. -1: It's wrong. -1: Confusing. -1: Encouraging bad behavior (e.g. answering a question that shouldn't have been asked; see ).   I made this a community-wiki since there will probably be testing of up/down votes. Several of these canned responses have been taken from . This same idea was also . Is it possible to store user's crontab in user's git repository on OpenBSD? On OpenBSD and with OpenBSD's  and , is it possible to store the  of a user in a  repository of the same user?  What would be the proper way to accomplish something like this?  (To steer the answer into the correct direction, I would not be opposed to changing some permissions in the system, although I'd rather not have to recompile the binaries, nor violate any good security paradigms.) I just upgraded to Ubuntu 18.04 but the UI did not change at all. For example I don't have the full screen app launcher; it's the same as it was back in 16 and 17. No notification center etc.   Do I need to somehow opt in? A question about causality and Quantum Field Theory from improper Lorentz transformation How can I have one keyboard input layout and multiples languages in Ubuntu 17.10? If I have English language I can't type "'e" and get an "é", as I can do in Portuguese and Spanish.  When I manage to do that on Settings -> Region &amp; Language, I'm able to change languages, but it also changes the keyboard layout.  Is there any way to change language (Portuguese or Spanish for example) and set the keyboard input layout (US International for example)? I'm using Maverick with Compiz enabled.  I've searched AskUbuntu and Google. AskUbuntu doesn't have anything on this topic and everything Google turns up is a couple years old.  I'm doing browser tests and my tests are constantly spawning new Firefox windows. The problem is, when the window is spawned it takes focus. This is incredibly annoying as I'm usually in the middle of typing somewhere else. This doesn't only happen with my tests, but is the most common example I run into. Sometimes my IDE decides it wants focus when something special happens (like when something is done compiling) and then later I'll find fragments of IM messages I've typed in my code. This is driving me crazy. I've looked in both Gnome settings and Compiz settings and can't find a way to prevent that from happening.  Does anyone know of a way to prevent an app from stealing focus when it is opened? I'd rather have the taskbar flash at me or something to get my attention. Determining application path in a Python EXE generated by pyInstaller I have an application that resides in a single .py file.  I've been able to get pyInstaller to bundle it successfully into an EXE for Windows.  The problem is, the application requires a .cfg file that always sits directly beside the application in the same directory.  Normally, I build the path using the following code:  import os config_name = 'myapp.cfg' config_path = os.path.join(sys.path[0], config_name)   However, it seems the sys.path is blank when its called from an EXE generated by pyInstaller.  This same behaviour occurs when you run the python interactive command line and try to fetch sys.path[0].  Is there a more concrete way of getting the path of the currently running application so that I can find files that are relative to it? When I want to register an account with Gmail now, it says "Google will send a text message containing a verification code to your mobile phone."  I don't want to give Google my mobile phone number!!  How do I get around this?