syntax error near unexpected token [on hold]












0














I trying to Setup PetaLinux Working Environment



   source /home/user/petalinux/settings.csh


but prompt with the following error:



bash: /home/user/petalinux/settings.csh: line 59: syntax error near unexpected token `('
bash: /home/user/petalinux/settings.csh: line 59: `foreach s (/bin/sh sh)'


The output of



~$ /bin/sh 
sh-4.3


Any help regarding this problem will be appreciated.










share|improve this question















put on hold as off-topic by George Udosen, user535733, Charles Green, vidarlo, Thomas Dec 29 '18 at 9:04


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow." – user535733, Charles Green, vidarlo, Thomas

If this question can be reworded to fit the rules in the help center, please edit the question.









  • 1




    I haven't used csh for many years ( faqs.org/faqs/unix-faq/shell/csh-whynot ), but putting blanks around the ( and ) would be what I tried first. Why tag this bash if you're using csh? Is this about Ubuntu?
    – waltinator
    Dec 28 '18 at 6:26










  • Petalinux and Xilinx are not Ubuntu. They have their own support venues, sorry. Waltinator is right - you seem to have a generic csh question.
    – user535733
    Dec 28 '18 at 12:46












  • The issue seems to be that you are trying to source a csh script into a bash shell - the syntaxes are incompatible
    – steeldriver
    Dec 28 '18 at 15:54
















0














I trying to Setup PetaLinux Working Environment



   source /home/user/petalinux/settings.csh


but prompt with the following error:



bash: /home/user/petalinux/settings.csh: line 59: syntax error near unexpected token `('
bash: /home/user/petalinux/settings.csh: line 59: `foreach s (/bin/sh sh)'


The output of



~$ /bin/sh 
sh-4.3


Any help regarding this problem will be appreciated.










share|improve this question















put on hold as off-topic by George Udosen, user535733, Charles Green, vidarlo, Thomas Dec 29 '18 at 9:04


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow." – user535733, Charles Green, vidarlo, Thomas

If this question can be reworded to fit the rules in the help center, please edit the question.









  • 1




    I haven't used csh for many years ( faqs.org/faqs/unix-faq/shell/csh-whynot ), but putting blanks around the ( and ) would be what I tried first. Why tag this bash if you're using csh? Is this about Ubuntu?
    – waltinator
    Dec 28 '18 at 6:26










  • Petalinux and Xilinx are not Ubuntu. They have their own support venues, sorry. Waltinator is right - you seem to have a generic csh question.
    – user535733
    Dec 28 '18 at 12:46












  • The issue seems to be that you are trying to source a csh script into a bash shell - the syntaxes are incompatible
    – steeldriver
    Dec 28 '18 at 15:54














0












0








0







I trying to Setup PetaLinux Working Environment



   source /home/user/petalinux/settings.csh


but prompt with the following error:



bash: /home/user/petalinux/settings.csh: line 59: syntax error near unexpected token `('
bash: /home/user/petalinux/settings.csh: line 59: `foreach s (/bin/sh sh)'


The output of



~$ /bin/sh 
sh-4.3


Any help regarding this problem will be appreciated.










share|improve this question















I trying to Setup PetaLinux Working Environment



   source /home/user/petalinux/settings.csh


but prompt with the following error:



bash: /home/user/petalinux/settings.csh: line 59: syntax error near unexpected token `('
bash: /home/user/petalinux/settings.csh: line 59: `foreach s (/bin/sh sh)'


The output of



~$ /bin/sh 
sh-4.3


Any help regarding this problem will be appreciated.







qemu syntax csh xilinx






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 28 '18 at 9:08

























asked Dec 28 '18 at 5:32









abbasi_ahsan

154




154




put on hold as off-topic by George Udosen, user535733, Charles Green, vidarlo, Thomas Dec 29 '18 at 9:04


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow." – user535733, Charles Green, vidarlo, Thomas

If this question can be reworded to fit the rules in the help center, please edit the question.




put on hold as off-topic by George Udosen, user535733, Charles Green, vidarlo, Thomas Dec 29 '18 at 9:04


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow." – user535733, Charles Green, vidarlo, Thomas

If this question can be reworded to fit the rules in the help center, please edit the question.








  • 1




    I haven't used csh for many years ( faqs.org/faqs/unix-faq/shell/csh-whynot ), but putting blanks around the ( and ) would be what I tried first. Why tag this bash if you're using csh? Is this about Ubuntu?
    – waltinator
    Dec 28 '18 at 6:26










  • Petalinux and Xilinx are not Ubuntu. They have their own support venues, sorry. Waltinator is right - you seem to have a generic csh question.
    – user535733
    Dec 28 '18 at 12:46












  • The issue seems to be that you are trying to source a csh script into a bash shell - the syntaxes are incompatible
    – steeldriver
    Dec 28 '18 at 15:54














  • 1




    I haven't used csh for many years ( faqs.org/faqs/unix-faq/shell/csh-whynot ), but putting blanks around the ( and ) would be what I tried first. Why tag this bash if you're using csh? Is this about Ubuntu?
    – waltinator
    Dec 28 '18 at 6:26










  • Petalinux and Xilinx are not Ubuntu. They have their own support venues, sorry. Waltinator is right - you seem to have a generic csh question.
    – user535733
    Dec 28 '18 at 12:46












  • The issue seems to be that you are trying to source a csh script into a bash shell - the syntaxes are incompatible
    – steeldriver
    Dec 28 '18 at 15:54








1




1




I haven't used csh for many years ( faqs.org/faqs/unix-faq/shell/csh-whynot ), but putting blanks around the ( and ) would be what I tried first. Why tag this bash if you're using csh? Is this about Ubuntu?
– waltinator
Dec 28 '18 at 6:26




I haven't used csh for many years ( faqs.org/faqs/unix-faq/shell/csh-whynot ), but putting blanks around the ( and ) would be what I tried first. Why tag this bash if you're using csh? Is this about Ubuntu?
– waltinator
Dec 28 '18 at 6:26












Petalinux and Xilinx are not Ubuntu. They have their own support venues, sorry. Waltinator is right - you seem to have a generic csh question.
– user535733
Dec 28 '18 at 12:46






Petalinux and Xilinx are not Ubuntu. They have their own support venues, sorry. Waltinator is right - you seem to have a generic csh question.
– user535733
Dec 28 '18 at 12:46














The issue seems to be that you are trying to source a csh script into a bash shell - the syntaxes are incompatible
– steeldriver
Dec 28 '18 at 15:54




The issue seems to be that you are trying to source a csh script into a bash shell - the syntaxes are incompatible
– steeldriver
Dec 28 '18 at 15:54















active

oldest

votes






















active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

How did Captain America manage to do this?

迪纳利

南乌拉尔铁路局