The alias doesn't work properly until running source ~/.bashrc or source ~/.bash_aliases ONLY AFTER running the alias once first. Is there a magical way to get the $todaydir string to be replaced properly without doing that? [myname@linux_server ~]$ cat .bash_aliases   alias col=&quot;todaydir=$(date | awk '{print $2$3}') ; cd /home/myname/collect/$todaydir&quot;   [myname@linux_server ~]$ alias | grep today   alias col='todaydir=Feb24 ; cd /home/myname/collect/'   [myname@linux_server ~]$ source .bashrc   [myname@linux_server ~]$ alias | grep today   alias col='todaydir=Feb24 ; cd /home/myname/collect/'   [myname@linux_server ~]$ col   [myname@linux_server collect]$ alias | grep today   alias col='todaydir=Feb24 ; cd /home/myname/collect/'   [myname@linux_server collect]$ source ~/.bashrc   [myname@linux_server collect]$ alias | grep today   alias col='todaydir=Feb24 ; cd /home/myname/collect/Feb24'   [myname@linux_server collect]$ col   [myname@linux_server Feb24]$    [myname@linux_server ~]$ bash --version   bash --version   GNU bash, version 4.1.2(1)-release (x86_64-redhat-linux-gnu) Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later &lt;http://gnu.org/licenses/gpl.html&gt;   [myname@linux_server collect]$ cat ~/.bashrc   # .bashrc      # Source global definitions   if [ -f /etc/bashrc ]; then           . /etc/bashrc   fi      # User specific aliases and functions   export PATH=$PATH:~/bin   source ~/.bash_aliases    Yes, yes, bash is antique; I'm not root.
I know that contents of double quotes are expanded, whereas the contents of single quotes are not, such that  echo '$1'   gives  $1   where as   echo "$1"   gives  &lt;the argument - blank in this particular example&gt;   the same as   echo $1   However, the question  led me to wonder why double quotes and not single quotes were used when declaring the alias, thus:  alias cutf="_cutf"   instead of   alias cutf='_cutf'   I would have employed single quotes as in the latter example. Most examples on the web use single too, unless there is some expansion required. However, in this case, no expansion, to my eyes, is apparent. Is it that, in this case, they are interchangeable, or are the double quotes necessary because a function definition is employed?
Is there any mention of the lands east of Mordor? Sauron seems to have huge armies east of Mordor, the Blue Wizards went there and didn't come back, and early maps of Arda when it was still flat show rough landmarks, but not much, and everything changed after the Second Age.  Is there any canonical information about the East? Why is foo.hasOwnProperty('__proto__') equal to false? There was a reason why I constantly failed physics at school and university, and that reason was, apart from the fact I was immensely lazy, that I mentally refused to &quot;believe&quot; more advanced stuff until I understand the fundamentals (which I, eventually, never did). As such, one of the most fundamental things in physics that I still don't understand (a year after dropping out from the university) is the concept of . No one cared to explain what a field actually is, they just used to throw in a bunch of formulas and everyone was content. The school textbook definition for a field (electromagnetic in this particular case, but they were similar), as I remember it, goes like:  An electromagnetic field is a special kind of substance by which charged moving particles or physical bodies with a magnetic moment interact.  A special kind of substance, are they for real? This sounds like the authors themselves didn't quite understand what a field is so they decided to throw in a bunch of buzzwords to make it sounds right. I'm fine with the second half but a special kind of substance really bugs me, so I'd like to focus on that. Is a field material? Apparently, it isn't. It doesn't consist of particles like my laptop or even the light. If it isn't material, is it real or is it just a concept that helps to explain our observations? While this is prone to speculations, I think we can agree that in scope of this discussion particles actually do exist and laws of physics don't (the latter are nothing but human ideas so I suspect Universe doesn't &quot;know&quot; a thing about them, at least if we're talking raw matter and don't take it on metalevel where human knowledge, being a part of the Universe, makes the Universe contain laws of physics). Any laws are only a product of human thinking while the stars are likely to exist without us homo sapiens messing around. Or am I wrong here too? I hope you already see why I hate physics. Is a field not material but still real? Can something &quot;not touchable&quot; by definition be considered part of our Universe by physicists? I used to imagine that a &quot;snapshot&quot; of our Universe in time would contain information about each particle and its position, and this would've been enough to &quot;de&quot; it but I guess my programmer metaphors are largely off the track. (Oh, and I know that the uncertainty principle makes such (de)serialization impossible — I only mean that I thought the Universe can be &quot;defined&quot; as the set of all material objects in it). Is such assumption false? At this point, if fields indeed are not material but are part of the Universe, I don't really see how they are different from  except for perhaps a more geeky flavor. When I talked about this with the teacher who helped me to prepare for the exams (which I did pass, by the way, it was before I dropped out), she said to me that, if I wanted hardcore definitions,  a field is a function that returns a value for a point in space.  Now this finally makes a hell lot of sense to me but I still don't understand how mathematical functions can be a part of the Universe and shape the reality. Deleted object would be re-saved by cascade (remove deleted object from associations) My understanding is that GPUs are more efficient for running neural nets, but someone recently suggested to me that GPUs are only needed for the training phase. Once trained, it's actually more efficient to run them on CPUs.  Is this true? Adding x and y values while creating a label QGIS I'm trying to create a label on a map in QGIS.  I can open the setting where there are an X and Y button and a few other properties, like opacity and distance.  I'm pretty sure the problem is that I need to enter the proper X and Y coordinate here, but I don't know how to get to where it lets you enter the coordinates. Pgfplots: Linewidth when using \ref in custom legend How was this answer posted after this question was closed? Why is this function continuous, unlike the Dirichlet function? Proof that $(x-1)^2$ divides a $nx^{n+1} – (n+1)x^{n}+1$ What was the joke that Geordi told Data in TNG: "Encounter at Farpoint"? states:     Apparently at some point during this mission, Geordi La Forge told Data a joke, which the humorless android did not "get" until years later, when he activated his emotion chip during the events of Star Trek: Generations.    Is it known what the joke is? I'm a citizen of India and I'm travelling to Nepal by air. Is an Aadhaar Card a valid document used for travelling to Nepal by air? In Windows, if you right-click a .bat file, there's an "Edit" option, which opens the .bat file with notepad. How do I make Windows use Notepad++ instead?  Note that this is different from the question . In that question, user asks for a way to make Notepad++ the default opener for specific file types. This is not what I want here, since I expect that double-clicking on .bat files executes them. I have installed Linux Bash on Windows 10 (available from Microsoft), but I've forgotten my password.  I've searched for a solution but I only find suggestions that involve doing something before the system boots, like accessing recovery mode, but that will not work in this case as this Ubuntu is just an application within a Windows system and doesn't have its own boot process.  How can I reset my password? Idiom: People caring about minor stuff while something terrible is happening Imagine a situation in which the whole place is on fire, a bomb is about to explode, everyone is running for their lives and someone is checking his looks on the mirror... pretty inappropriate for the situation, don't you think? I'm looking for an idiom or colloquial/slang/informal expression to describe such an indifferent stance. When wouldn't I use LASSO for model selection? My friend and his wife visited UK during the year 2015. And they came back on time we want to know one information as they same couple want to visit UK again  For how many years or months can multiple entry visa can be given for a couple who have already visited UK? How can I calculate the following sum involving binomial terms:  $$\sum_{k=0}^{n} \binom{n}{k}\frac{(-1)^k}{(k+1)^2}$$  Where the value of n can get very big (thus calculating the binomial coefficients is not feasible).  Is there a closed form for this summation? What is different about the Mac ISO image? Names of some months don't make sense I'm not a native English speaker but I'm always trying to do my best. Unfortunately I have a real problem with dates for some odd reason, I couldn't learn when was my birthday until I was 12 years old.  Anyway, as I was learning names of the months on English, and since I know some Latin from high school I noticed that English months don't match up with their Latin numeral counterparts. For example:  September - 9. month October - 10. month November - 11. month December - 12. month  While on latin septem, octo, novem and decem are words for 7, 8, 9 and 10.  So, does anyone know why is that. At first I thought it had something to do with switch from Julian to Gregorian calendar but I figured it's too small of a difference.  Anyone? :)