Defining shell environment variables in tcsh Unable to create environment variables using a tcsh script.  Tried set, but works only inside the script. setenv doesn't work outside the script. export says "command not found" in the terminal I'm trying to run.  #!/usr/intel/bin/tcsh #set WV "/p/hdk/cad/custom_waveview/O-2018.09-SP2/bin/wv" setenv WV "/p/hdk/cad/custom_waveview/O-2018.09-SP2/bin/wv" echo $WV env $WV "/p/hdk/cad/custom_waveview/O-2018.09-SP2/bin/wv"   I expect the output to be /p/hdk/cad/custom_waveview/O-2018.09-SP2/bin/wv, when i echo the environment variable WV on the terminal, but i am getting the error of undefined variable.
Can a shell script set environment variables of the calling shell? I'm trying to write a shell script that, when run, will set some environment variables that will stay set in the caller's shell.  setenv FOO foo   in csh/tcsh, or  export FOO=foo   in sh/bash only set it during the script's execution.  I already know that   source myscript   will run the commands of the script rather than launching a new shell, and that can result in setting the "caller's" environment.  But here's the rub:  I want this script to be callable from either bash or csh.  In other words, I want users of either shell to be able to run my script and have their shell's environment changed.  So 'source' won't work for me, since a user running csh can't source a bash script, and a user running bash can't source a csh script.  Is there any reasonable solution that doesn't involve having to write and maintain TWO versions on the script?
What are the benefits to marking a field as `readonly` in C#? What are the benefits of having a member variable declared as read only?  Is it just protecting against someone changing its value during the lifecycle of the class or does using this keyword result in any speed or efficiency improvements? How to change geometry for one page without using \newgeometry or \restoregeometry Drupal unexpected "Fatal error: Class name must be a valid object or a string [...] common.inc" on every page "Fatal error: Class name must be a valid object or a string in C:\xampp\htdocs\uc\includes\common.inc on line 7506"  The error above showed up unexpectedly. I was adding a "Long text" field to a content-type, but when I expected to be brought to a saved field configuration page, I instead got a Fatal error on every page.  I had a look at includes\common.inc:  /**  * Get the entity controller class for an entity type.  */ function entity_get_controller($entity_type) {   $controllers = &amp;drupal_static(__FUNCTION__, array());   if (!isset($controllers[$entity_type])) {     $type_info = entity_get_info($entity_type);     $class = $type_info['controller class'];     $controllers[$entity_type] = new $class($entity_type); // Line 7506   }   return $controllers[$entity_type]; }   However, I just don't understand Drupal at a low enough level to understand the relationships between these variables and functions.  I also searched Drupal for people with a similar problem:  (1)  who claims that I have to install the submodule "Relation Endpoints Field", but searching Drupal, .  (2) :  DELETE FROM cache; DELETE FROM cache_filter; DELETE FROM cache_menu; DELETE FROM cache_page; DELETE FROM watchdog;   (via , misleading name, I know.)  Clearing those tables from the cache did not help.  (3) And another user . Because I can't find a module specifically pertaining to old search facets, I went into MySQL system table, and marked the Search module's line with a 0 status, indicating to stop loading the module altogether.  On that same link as (3), one user suggested enabling the , so I dropped all the tables, imported the latest stable .sql, and installed the module, but after recreating the problem (trying to add a field to a content-type), that as well concluded fruitless.  Still, the problem remains  The Fatal error shows up on every page, making the site completely non-functional. Any help or direction would be immensely appreciated. Thank you for looking. Positioning of decorations on parallel lines Replaced wrong car in garage in GTA Online How to terminate a script? What is the limit of $\lim\limits_{x→∞}\frac{\sin x}{x}$ We should make books of our best content! And that's a good idea!  We have a lot of high quality content here, certainly enough for a small book.   I'm not saying that it necessarily has to be integrated into the main site, but this is just a suggestion if anyone wants to implement it.   Stack Exchange probably could make money selling the physical books though. CC-BY-SA allows selling, as long as you allow others to make copies of your book, and credit the author.  What Wikipedia does is you can custom order any set of articles as a book (it even has a nice set of authors at the end, to satisfy the BY part of CC-BY-SA).  This could even tie into the docs feature. Compare integer in bash, unary operator expected When does System.gc() do something? I'm trying to get my csv table aligned to the left of my graph. The graph is appearing below (and indented) the table. Any ideas?  \begin{minipage}{0.5\textwidth} \pgfplotstabletypeset[col sep=comma, columns/distance/.style={column name={Col1}, column type={|c|}}, columns/loss/.style={column name = {Col2},column type={c|}}, every head row/.style={before row=\hline}, after row={\hline} ]{graph-data/data.csv} \end{minipage}  \begin{minipage}{0.5\textwidth} \begin{tikzpicture} \begin{axis}[ xlabel = Distance ($m$), ylabel = Loss ($dB$)] \addplot table [col sep=comma]{graph-data/data.csv}; \end{axis} \end{tikzpicture} \end{minipage} Solve for $A,B$: $\mathrm{LCM}(A,B)=168$, $\mathrm{HCF(A,B)}=12$ What would happen if you used a dead person's hair in Polyjuice Potion? Figuring out algorithm/formula for item scaling in WoW $f: \mathbb{R} \rightarrow \mathbb{R}$ is a continuous function. Assume that $\lim_{x \rightarrow \pm \infty} f(x)$ exist and are finite. Prove that $f$ is bounded.  So to show that $f$ is bounded, I must show that $\exists M \in \mathbb{R}$ such that $|f(x)| \leq M$ for all $x \in Dom(f)$. Assuming that $f(x)$'s limit exist, then I know that $\forall \epsilon  &gt; 0$, $\exists N$ such that for $n &gt; N$, $|f(n) - L| &lt; \epsilon$. But I am having trouble with figuring out how to connect the two ideas together. Closed-Form Solution to Infinite Sum Can I use my powers for good? I know there is a difference between assert and verify in Junit; the assert results in a runtime exception, causing test method execution to abort. To overcome this problem, we can have verify which will make test case fail, but allowing test execution to proceed rather than getting aborted.  I doubt there is any such built in approach in testNG. I do understand that best practices say, there should not be multiple asserts in same test case.  But, in practical world, we do come across scenarios where we need to have multiple checkpoints in one test case and we don't want our test method to abort because of one check point failure (test execution should proceed despite failure).  How can we use a soft assert mechanism, similar to verify, which will not abort test method when there is a checkpoint failure.  Example:  @Test(dataProvider = "getMailUrl") public void testMail(email,subject); Assert.assertFalse(subject.isEmpty);//1st checkpoint Assert.assertNotNull(email); //2nd checkpoint Assert.assertEquals(email, "feedback@yoursite.com"); //3rd checkpoint   Now, I want test execution to proceed, even if the 1st checkpoint (validation of subject being not empty) fails. Definitely we will be not be using assert (hard assert). We will need concept of soft assert similar to verify (facilitated by Junit).   I understand, we have to build a customListener implementing TestNG interfaces or extending existing listeners such as TestListenerAdapter. I am still struggling - how can we do this? In simple terms, what is the purpose of flush() in ostream proof that translation of a function converges to function in $L^1$ Let $f \in L^1(\mathbb{R})$, for $a\in \mathbb{R}$ let $f_a(x)=f(x-a)$, prove that: $$\lim_{a\rightarrow 0}\|f_a -f \|_1=0$$  I know that there exists $g\in C(\mathbb{R})$ s.t $\|f-g\|_1 \leq \epsilon$, this is also true for $f_a$ and $g_a$.  Now I have the next estimation:  \begin{align*} \|f_a-f\|_1 &amp;= \int_{\mathbb{R}} |f(x)-f(x-a)| dx \\ &amp;= \int |f(x)-g(x)+g(x)-g(x-a)+g(x-a)-f(x-a)| \\ &amp;\leq \|f-g\|_1 + \|f_a-g_a\|_1 + \int |g(x)-g(x-a)| \end{align*} my question is: I can argue that $\lim_{a\to0} \int |g(x)-g(x-a)| = \lim_{a\to0} \lim_{T\to\infty} |g(x_0)-g(x_0-a)| 2T$, now I think that I can change the order of the limits here, but I am not sure why?  P.s $x_0$ is some point in $[-T,T]$, and the above is valid from the intermediate integral theorem for continuous functions, right?  Thanks.