I have a shell script (let's call it parent.sh) which calls another shell script (child.sh), passing it an argument.  The child script does some work and sets a value in a variable called create_sql. I want to access this create_sql variable from the parent script which invoked it.   I am calling the child script from within the parent script like this:  ./child.sh "$dictionary"  and straight afterwards I have the line:  echo "The resulting create script is: "$create_sql  However, there is no value being output, however, in the child script I am doing the same thing and the variable is definitely set.  How can I get this to work so that I can read variables created by the child script?
I have a bash script which must call another bash script which varies per-user in order to get some configuration information, like so:  somescript:  #!/bin/bash ${HOME}/.ssconfig echo "Hello, ${VARIABLE}!"   ~/.ssconfig  #!/bin/bash VARIABLE=world   Which, instead of giving me Hello, world! as expected, gives me Hello, ! How can I pass variables up from a script to the one that called it?
Mac-like alt-tab replacement for Windows 7? Is there an alt-tab replacement for Windows 7 that works in the same manner as command-tab and command-tick (tilde) on OS X?  Requirements:  1. Completely keyboard-shortcut-based, no mouse action should be necessary.  2. 2 keyboard shortcuts with the following behavior:  a.) alt+tab:       cycles through open applications (NOT windows... applications, meaning even if i have 10 firefox windows open, I only want to see firefox once in the list that comes up when i hit this shortcut)  b.) alt+`:     cycles through WINDOWS that are instances of the currently active application (meaning if firefox is my active window and i hit shortcut2, it will cycle through those 10 firefox windows, while ignoring any other windows from ANY other application).    Update 08:40 5/21: I tried out eidylon's suggestion, TopDesk.  It doesn't provide any of the functionality described here.  Other apps I've already tried:   VistaSwitcher Switcher Dexpot (awesome app, still using, but doesn't do what I want in this case... also looked for plugins but couldn't find one that does it) UltraMon Nvidia nView   update: Unfortunately I still haven't found a solution for this.  update: made this a community wiki in case anyone is ever able to find a solution for this. How do I add a border around windows but keep the current theme? I seem to live my life in the terminal - many terminals in-fact.  I also love the Ambiance theme - but the new borderless windows does not provide the visual differentiation I'm used to (the same black windows appear to blend into each other).    Thus to my question - how do I add back the single pixel border for windows that is found in earlier Ubuntu versions?  I want to keep the Ambiance overall theme since this looks good and I dont want to swap to another theme.      Now I know that I can modify the Ubuntu Ambiance theme as follows:  mkdir ~/.themes cp -r /usr/share/themes/Ambiance .themes   Then flipping between the theme options in the Settings - Appearance picks up changes in the theme in now in the .themes folder.  I presume I need to alter one of the .css files but I dont know which one.  I was also looking at  but the solutions there doesnt work for 14.04.  I also looked at the  but got rather lost trying to figure out which one applies to my situation. How do I check if an integer is even or odd? How can I check if a given number is even or odd in C? Every Hilbert space has an orthonomal basis - using Zorn's Lemma The problem is to prove that every Hilbert space has a orthonormal basis. We are given Zorn's Lemma, which is taken as an axiom of set theory:  Lemma If X is a nonempty  with the property that every  of X has an upper bound in X, then X has a maximal element.   Given a orthonormal set $E$ in a Hilbert space $H$, it is apparently possible to show that $H$ has an orthonormal basis containing $E$.   I tried to reason as follows: Suppose $E$ is a finite set of $n$ elements. Then one can number the elements of $E$ to create a totally ordered set of orthonormal elements. Then the span $&lt;E&gt;$ can be identified with $R^n$, where each element $v = v_1 e_1 + v_2 e_2 + ... + v_n e_n$ is identified with the vector $(v_1, v_2, ..., v_n)$. On $R^n$ we have a total order, namely the "lexigraphical order" $(x_1,x_2,...,x_n) \leq (y_1,y_2,...,y_n)$ if $x_1 &lt; y_1$ or if $x_1 = y_1$ and $x_2 &lt; y_2$ or if $x_1 = y_1$, $x_2 = y_2$ and $x_3 &lt; y_3$ and so on. Hence $E$ is a totally ordered subset of $H$ and $H$ is a partially ordered set. However, this set doesn't seem to have an upper bound. The set $E$ does have an upper bound. If we define a total order on $E$ only, then X is a partially ordered set satisfying the criteria so X has a maximal element?   This is as far as I got, and I am not sure the entire argument is correct. I don't see how what kind of maximal element I am seeking, since the orthonormal basis of a Hilbert space can have countably infinity number of elements. Android - Call log/ history : Retrieve a dialed number when there was no network coverage I dialed a number when I had no network support but it does not appear in the call history of my android phone.  Is there any way to get it ? (system logs or whatever)  THanks a lot in advance, Jack CSV text files loading error / crash in QGIS 2.18.8 I got a problem when I try to load tab-separated text files in the "Create a layer from the delimited text file" tab (that one with de comma symbol). After normally selecting the X and Y fields and clicking OK, the reference coordinate system (SRC) selector screen appears, then the program closes by itself. I had uploaded more than a hundred of this type of file by the same procedure in the previous version of QGIS (2.14 Essen) and have no problem, but since I updated to version 2.18.8 (Las Palmas) I can not load any files or .CSV type.   Do anyone knows what's happening? Am I doing anything wrong? Wasn't the density of the universe at the moment after the Big Bang so great as to create a black hole? If the answer is that the universe/space-time can expand anyway what does it imply about what our universe looks like from the outside? Why is my camera so forgiving for overblown exposure when shooting in RAW? How can Cooper communicate with his daughter before the time he went to space? How to create a page like this? I'm a LaTeX newbie. I want to create a page layout like in the picture below on every page.  Can someone help please? Thanks. Query standard input of lightning-input I want to query standard HTML textarea which is wrapped by lightning-textarea. How can I get it?  &lt;lightning-textarea name=&quot;secret_field&quot; label=&quot;Secret&quot; value={secretFieldValue}&gt;&lt;/lightning-textarea&gt; How do you solve a recurrence with a summation function inside: $t(n) = 1 + \sum\limits_{j=0}^{n-1} t(j)$ Show that  $$t(n) = 1 + \sum_{ j=0}^{n-1} t(j)$$  is the same as  $$t(n) = 2^n$$  Initial condition $t(0) = 1$ Since I updated Windows to 8.1 my Grub menu disappeared. I ran Ubuntu using Live USB, I used Boot-Repair but something went wrong. If I click on Reccomended repair I get this error:     GPT detected. Please create a BIOS-Boot partition (>1MB, unformatted filesystem, bios_grub flag). This can be performed via tools such as Gparted. Then try again. Alternatively, you can retry after activating the [Separate /boot/efi partition:] option.   So I tried to set my sda9 (I think that it's the Ubuntu system partition, since it's ext4) with the bios_grub flag and then to run Boot-Repair again. It didn't work.  I don't know what to do. My Grub was working fine (using UEFI) before I updated Windows.  I removed the bios_grub flag. Then I used fsck and it didn't find any error. So I tried again with Boot-Repair but it always gives me the "GPT detected" error. My boot is on UEFI mode, Secure Boot is "off".  When I boot my PC with SecureBoot OFF, I can reach the GRUB menu. But it's empty (the only voice is "System Setup").  I mounted my Ubuntu system disk:  sudo mount /dev/sda9 /mnt   and the other things:  sudo mount --bind /dev /mnt/dev sudo mount --bind /proc /mnt/proc sudo mount --bind /sys /mnt/sys   I logged on the system with chroot:  sudo chroot /mnt   I re-installed grub:  grub-install /dev/sda update-grub2   But it still doesn't work. The dialog box in question here is the one you get with the context menu option "open with other applications". Wine seems to have inserted more than a dozen or so entries for each application I install, which makes it a pain to find the correct application:     What can I do to remove the duplicates?     Update: Neither of the two solutions really work. The bug is interesting, but the symptoms does not match my problem (I'm not having problem with uninstalling applications, but rather the things that are inserted after installing them), and with the other one, all references to the Wine application are removed, which actually makes the problem worse (although it may be an acceptable solution if nothing else can be found). So this is still an open question; any takers? Gay rights – does Star Trek ever address this issue? I am aware of the picture of the man wearing the 'dress' from TNG, which promotes gender equality, but are gay rights ever addressed in Star Trek at all? (All seasons accepted.) I just started blender and one of the main things you have to do is to render to make an animation, but I can't seem to do that. Whenever I click Render and then render image or render animation, at the top of the screen it says 'No camera found in Scene "Scene". I don't know why this is happening. Rotation and Scale have suddenly stopped working? I was working quickly, (making mistakes), and suddenly rotation and scale transforms stopped working. I think I hit some shortcut or button by accident. Translate still works though. I checked that the transforms weren't locked and such, to no avail. What could be the cause? $\mathbb{R}P^4$ and $\mathbb{R}P^6$ do not admit fields of tangent $2$-planes Filtering questions by multiple tags I know you can select a tag and then click on unanswered to view the unanswered questions for that tag.  But is there a way to view questions only for a certain set of tags > 1 tag?  Mainly I'd like the union of tag1 with tag2 with tag3 with tag4. But also the intersection of tags would be nice as well. How to run Ubuntu without GUI in Virtual Box?