<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_1_1424020457872_61272">Hello, <br></div><div id="yui_3_16_0_1_1424020457872_61251"><br></div><div id="yui_3_16_0_1_1424020457872_62512" dir="ltr">>I’m using Biolinux 8 on a university PC (I login as user and not admin)
and I’m having problem with <br>>a very basic task – assigning variables in
the shell!</div><div id="yui_3_16_0_1_1424020457872_62513"><br></div><div id="yui_3_16_0_1_1424020457872_61593" dir="ltr">If you're trying to set environmental variables, you'll need to use export before the rest of the statement. <br></div><div id="yui_3_16_0_1_1424020457872_61594" dir="ltr">e.g.</div><div id="yui_3_16_0_1_1424020457872_61574" dir="ltr"><br></div><div id="yui_3_16_0_1_1424020457872_61720" dir="ltr">export MYVAR=1 </div><div id="yui_3_16_0_1_1424020457872_61575" dir="ltr"><br></div><div id="yui_3_16_0_1_1424020457872_62698" dir="ltr">Setting environmental variables is covered on page 29 of the Bio-Linux tutorial:<br></div><div id="yui_3_16_0_1_1424020457872_61273"><br></div><div id="yui_3_16_0_1_1424020457872_61255" dir="ltr"><a id="yui_3_16_0_1_1424020457872_61254" href="http://nebc.nerc.ac.uk/downloads/courses/Bio-Linux/bl8_latest.pdf">http://nebc.nerc.ac.uk/downloads/courses/Bio-Linux/bl8_latest.pdf</a><br></div><div id="yui_3_16_0_1_1424020457872_61250"><br><span></span></div><div id="yui_3_16_0_1_1424020457872_62699" dir="ltr"><span>I hope that's the information you were looking for. <br></span></div><div id="yui_3_16_0_1_1424020457872_62312" dir="ltr"><br><span></span></div><div id="yui_3_16_0_1_1424020457872_62313" dir="ltr"><span>Best wishes, <br></span></div><div id="yui_3_16_0_1_1424020457872_62314" dir="ltr"><br><span></span></div><div id="yui_3_16_0_1_1424020457872_62700" dir="ltr"><span>Bela</span></div> <div class="qtdSeparateBR"><br><br></div><div style="display: block;" class="yahoo_quoted"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"> <font face="Arial" size="2"> Den Mandag, 16. februar 2015 12.38 skrev Giulia Zancolli <g.zancolli@bangor.ac.uk>:<br> </font> </div> <br><br> <div class="y_msg_container"><div id="yiv6090720214">
<style><!--
#yiv6090720214
_filtered #yiv6090720214 {font-family:"Cambria Math";panose-1:2 4 5 3 5 4 6 3 2 4;}
_filtered #yiv6090720214 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}
_filtered #yiv6090720214 {font-family:Georgia;panose-1:2 4 5 2 5 4 5 2 3 3;}
#yiv6090720214
#yiv6090720214 p.yiv6090720214MsoNormal, #yiv6090720214 li.yiv6090720214MsoNormal, #yiv6090720214 div.yiv6090720214MsoNormal
        {margin:0cm;margin-bottom:.0001pt;font-size:11.0pt;font-family:"Calibri", sans-serif;}
#yiv6090720214 a:link, #yiv6090720214 span.yiv6090720214MsoHyperlink
        {color:#0563C1;text-decoration:underline;}
#yiv6090720214 a:visited, #yiv6090720214 span.yiv6090720214MsoHyperlinkFollowed
        {color:#954F72;text-decoration:underline;}
#yiv6090720214 span.yiv6090720214EmailStyle17
        {font-family:"Calibri", sans-serif;color:windowtext;}
#yiv6090720214 .yiv6090720214MsoChpDefault
        {font-family:"Calibri", sans-serif;}
_filtered #yiv6090720214 {margin:72.0pt 72.0pt 72.0pt 72.0pt;}
#yiv6090720214 div.yiv6090720214WordSection1
        {}
--></style>
<div>
<div class="yiv6090720214WordSection1">
<div class="yiv6090720214MsoNormal">Hello,</div>
<div class="yiv6090720214MsoNormal">I’m using Biolinux 8 on a university PC (I login as user and not admin) and I’m having problem with a very basic task – assigning variables in the shell!</div>
<div class="yiv6090720214MsoNormal"> </div>
<div class="yiv6090720214MsoNormal">I type something very simple like </div>
<div class="yiv6090720214MsoNormal"> </div>
<div class="yiv6090720214MsoNormal">a=1 </div>
<div class="yiv6090720214MsoNormal"> </div>
<div class="yiv6090720214MsoNormal">and I get the error: command “a=” not found</div>
<div class="yiv6090720214MsoNormal"></div>
<div class="yiv6090720214MsoNormal">or the following (which was working perfectly in Linux on my laptop)</div>
<div class="yiv6090720214MsoNormal"> </div>
<div class="yiv6090720214MsoNormal">LIST="$(ls | grep "fastq$")"</div>
<div class="yiv6090720214MsoNormal"> </div>
<div class="yiv6090720214MsoNormal">And I get the error “Illegal variable name”</div>
<div class="yiv6090720214MsoNormal"> </div>
<div class="yiv6090720214MsoNormal">What might be wrong?</div>
<div class="yiv6090720214MsoNormal"> </div>
<div class="yiv6090720214MsoNormal">Any clue is very appreciated!</div>
<div class="yiv6090720214MsoNormal"> </div>
<div class="yiv6090720214MsoNormal">Giulia</div>
<div class="yiv6090720214MsoNormal"> </div>
<div class="yiv6090720214MsoNormal"><span style="font-size:10.0pt;color:#0B5394;">Dr Giulia Zancolli</span><span style="font-size:12.0pt;"></span></div>
<div class="yiv6090720214MsoNormal"><span style="color:#0B5394;">Molecular Ecology and Fisheries Genetics Lab</span><span style="font-size:12.0pt;color:#222222;"></span></div>
<div class="yiv6090720214MsoNormal"><span style="font-size:10.0pt;color:#0B5394;">School of Biological Sciences <br>
Bangor University<br>
Environment Centre Wales<br>
Bangor LL57 2UW <br>
UK </span><span style="font-size:10.0pt;color:#222222;"></span></div>
<div class="yiv6090720214MsoNormal"> </div>
</div>
<div> </div>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td style="padding:15px 0;" valign="top">
<div><strong>Rhif Elusen Gofrestredig 1141565 - Registered Charity No. 1141565</strong></div>
<div>Gall y neges e-bost hon, ac unrhyw atodiadau a anfonwyd gyda hi, gynnwys deunydd cyfrinachol ac wedi eu bwriadu i'w defnyddio'n unig gan y sawl y cawsant eu cyfeirio ato (atynt). Os ydych wedi derbyn y neges e-bost hon trwy gamgymeriad, rhowch wybod i'r
anfonwr ar unwaith a dilewch y neges. Os na fwriadwyd anfon y neges atoch chi, rhaid i chi beidio a defnyddio, cadw neu ddatgelu unrhyw wybodaeth a gynhwysir ynddi. Mae unrhyw farn neu safbwynt yn eiddo i'r sawl a'i hanfonodd yn unig ac nid yw o anghenraid
yn cynrychioli barn Prifysgol Bangor. Nid yw Prifysgol Bangor yn gwarantu bod y neges e-bost hon neu unrhyw atodiadau yn rhydd rhag firysau neu 100% yn ddiogel. Oni bai fod hyn wedi ei ddatgan yn uniongyrchol yn nhestun yr e-bost, nid bwriad y neges e-bost
hon yw ffurfio contract rhwymol - mae rhestr o lofnodwyr awdurdodedig ar gael o Swyddfa Cyllid Prifysgol Bangor.</div>
<div>This email and any attachments may contain confidential material and is solely for the use of the intended recipient(s). If you have received this email in error, please notify the sender immediately and delete this email. If you are not the intended recipient(s),
you must not use, retain or disclose any information contained in this email. Any views or opinions are solely those of the sender and do not necessarily represent those of Bangor University. Bangor University does not guarantee that this email or any attachments
are free from viruses or 100% secure. Unless expressly stated in the body of the text of the email, this email is not intended to form a binding contract - a list of authorised signatories is available from the Bangor University Finance Office.</div>
</td>
</tr>
</tbody>
</table>
</div>
</div><br>_______________________________________________<br>Bio-Linux mailing list<br><a ymailto="mailto:Bio-Linux@nebclists.nerc.ac.uk" href="mailto:Bio-Linux@nebclists.nerc.ac.uk">Bio-Linux@nebclists.nerc.ac.uk</a><br><a href="http://nebclists.nerc.ac.uk/mailman/listinfo/bio-linux" target="_blank">http://nebclists.nerc.ac.uk/mailman/listinfo/bio-linux</a><br><br><br></div> </div> </div> </div> </div></body></html>