I recently installed Ubuntu 20.04 and am having a problem. In my ~/.profile, I have export BASE='$HOME/git'. When I run cd $BASE, I get an error saying bash: cd: $HOME/git: No such file or directory. However, the directory does exist and whenever I run cd $HOME/git, it works. Why can't I cd $BASE?
I often see tutorials on the web or posts on this site which make heavy use of the following characters at the command line. Often it seems that they are used for pretty similar purposes. What are the differences between them when used on the command line or for shell programming? For what purpose do I use which of them?  " " double quotes  ' ' single quotes  ` ` backticks
This problem is from Romanian G.M. and although it is very short, it is also (I think) very hard. Let $x, y, z$ real non-negative numbers such that $x+y+z=3$. Prove that   $$27 \leq (x^2+2)(y^2+2)(z^2+2) \leq 44 $$  I didn't succeed in any of the inequalities, I only managed to find the equality cases ($x=y=z=1$ for the first one and one of them $3$ and the others $0$). Any hint/idea/solution is welcome. Is there a functional difference between the modern police station and classic police station? $K \subset \mathbb{R}^n$ is compact iff it is closed and bounded I want to prove $\Leftarrow$.  I just need one more step, now. If I find a compact set that contains K, then it will finish the proof. Rudin take a k-cell to do that, but before it he proves that every k-cell is compact, and I think I can take a more simple compact to do this step. I has thinked in the closed ball, but don't know how to prove that it is compact. Can anyone help me to find this set, if it really exists? Thanks. Labelled in-line equation Embed vimeo video into the body field I'm wondering if there's any log which stores information about a particular program such as when the program has started and closed manually on Windows such as MS Word, or Chrome. Any ideas? Why does C# disallow readonly local variables? Having a friendly debate with a co-worker about this.  We have some thoughts about this, but wondering what the SO crowd thinks about this? Replace unknown reference (?) with the tag from \ref or \cite Why are random walks intercorrelated? Book, it follows a guy in a dystopian future How can I download free apps without registering an Apple ID? How to bottle your own homemade salad dressing How to setup synctex with vim, pdflatex and an open-source PDF-viewer under Linux? Exploring ocean depths: is pressure an issue? Should it be? An upcoming adventure will have the party exploring the depths of the ocean. Breathing underwater shouldn't be an issue for them, as there are both items and rituals to take care of that, however, I was wondering what to do about about pressure, since none of these options mention it. I'll have to split my question into two, since they are closely related.   Is pressure an issue in 4e adventures? Is it mentioned in any of the published material? Has it been ruled anywhere that options that enable water breathing also grant immunity to pressure? Should it be an issue? This is somewhat subjective, but I really am wondering what other people have done. Would it be unresonable to assume that these options grant immunity to pressure? Should the players work to find another solution? Solve $$\int \limits_{0}^{\infty} \frac{\cos(x)}{\cosh(x)} dx$$ without complex integration.  This integral can be very easily solved with contour integration, but how can you solve it without taking a tour in the complex plane? How can I add a bookmark in my nautilus folder explorer How do I make Endermen spawn more frequently? I'm playing vanilla Minecraft, and am getting ready to head to the end.  I need Eyes of Ender (and hence Ender Pearls), and in my main hunting grounds (a large desert area) as little as one Enderman may spawn per night.  Is there any way to "promote" Enderman spawning so I can get pearls more quickly? How to redirect output of an entire shell script within the script itself? Is it possible to redirect all of the output of a Bourne shell script to somewhere, but with shell commands inside the script itself? Redirecting the output of a single command is easy, but I want something more like this: #!/bin/sh if [ ! -t 0 ]; then     # redirect all of my output to a file here fi  # rest of script...  Meaning: if the script is run non-interactively (for example, cron), save off the output of everything to a file.  If run interactively from a shell, let the output go to stdout as usual. I want to do this for a script normally run by the FreeBSD periodic utility.  It's part of the daily run, which I don't normally care to see every day in email, so I don't have it sent.  However, if something inside this one particular script fails, that's important to me and I'd like to be able to capture and email the output of this one part of the daily jobs. Update: Joshua's answer is spot-on, but I also wanted to save and restore stdout and stderr around the entire script, which is done like this: # save stdout and stderr to file  # descriptors 3 and 4,  # then redirect them to &quot;foo&quot; exec 3&gt;&amp;1 4&gt;&amp;2 &gt;foo 2&gt;&amp;1  # ...  # restore stdout and stderr exec 1&gt;&amp;3 2&gt;&amp;4 Line of Bones to Travel and Conform to Curve (Train or snake following path) Is there a *simple* example of how the axiom of choice can lead to a counterintuitive result?