Module Line 1 Syntax Error Unexpected End Of File
Contents |
here for a quick overview of the site Help Center Detailed answers /bin/sh: module: line 1: syntax error: unexpected end of file to any questions you might have Meta Discuss the workings error importing function definition for `bash_func_module' and policies of this site About Us Learn more about Stack Overflow the company Business sh: error importing function definition for `bash_func_module' sap Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack drush sh: error importing function definition for `bash_func_module' Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up 'Unexpected end of file' and 'error importing function definition' error running shellscript using qsub up vote 8 down vote favorite 1 I have the following
/bin/sh: Bash_func_module(): Line 0: Syntax Error Near Unexpected Token `)'
shellscript: #!/bin/sh cd /sw/local/bin/ export LD_LIBRARY_PATH=/sw/local/lib:/usr/local/Trolltech/Qt-4.7.2/lib:$LD_LIBRARY_PATH ./FeatureFinderRaw -in /homes/JG-C1-18.mzML -out /homes/test_remove_after_use.featureXML -threads 20 It works fine when I run it from my own command line, but when I try to do: qsub -q ningal.q -cwd -V -o /homes/queue.out -e /queue.err featureFind_C1-18_20t.sh I get the following error: /bin/sh: module: line 1: syntax error: unexpected end of file /bin/sh: error importing function definition for `module' ./FeatureFinderRaw: error while loading shared libraries: libOpenMS.so: cannot open shared object file: No such file or directory /bin/sh: module: line 1: syntax error: unexpected end of file /bin/sh: error importing function definition for `module' ./FeatureFinderRaw: error while loading shared libraries: libQtWebKit.so.4: cannot open shared object file: No such file or directory /bin/sh: module: line 1: syntax error: unexpected end of file /bin/sh: error importing function definition for `module' ./FeatureFinderRaw: error while loading shared libraries: libQtWebKit.so.4: cannot open shared object file: No such file or directory /bin/bash:
Sign in Pricing Blog Support Search GitHub This repository Watch 163 Star 1,482 Fork 746 drush-ops/drush Code Issues 348 Pull
`bash_func_module() () { Eval `/usr/bin/modulecmd Bash $*`'
requests 90 Projects 1 Wiki Pulse Graphs New issue BASH 4.3.42 scl: line 1: syntax error: unexpected end of file Errors - error importing fucntion definition for BASH_FUNC_module Fedora 23 (F23) #2065 Open taz77 opened this Issue /bin/sh: error importing function definition for `bash_func Mar 13, 2016 · 20 comments Projects None yet Labels type-bug Milestone No milestone Assignees greg-1-anderson 7 participants taz77 commented Mar 13, 2016 I have http://stackoverflow.com/questions/10496758/unexpected-end-of-file-and-error-importing-function-definition-error-running been trying to resolve this but I haven't been able to on my own. Hoping someone else here has some insight. Running the latest Drush (via Composer global install) I get errors in bash on Fedora 23 which is using Bash version 4.3.42. This error: sh: scl: line 1: syntax error: unexpected end of file sh: error https://github.com/drush-ops/drush/issues/2065 importing function definition for `BASH_FUNC_scl' and: sh: module: line 1: syntax error: unexpected end of file sh: error importing function definition for `BASH_FUNC_module' Repeats itself eight times per drush call. Drush still runs without a problem. Just blasts your terminal with loads of text. I have axed the .drush/ folder and re-run drush init. That does not change the problem. Googling the error gets a lot of hits for many other issues. Ideas? Drush member weitzman commented Mar 17, 2016 No idea. Try Drupal Answers. weitzman closed this Mar 17, 2016 taz77 commented Mar 20, 2016 The problem is with Drush and the latest version of Bash shell. That is why I posted this here. taz77 commented Mar 20, 2016 https://stackoverflow.com/questions/10496758/unexpected-end-of-file-and-error-importing-function-definition-error-running mtift commented Apr 25, 2016 I have also experienced this problem on Fedora. It's not clear to me where to put the unset module command. taz77 commented Apr 26, 2016 Agreed. It's a compatibility issue that will grow once the newer versions of bash are m
instructions: Windows Mac Red Hat Linux Ubuntu Click URL instructions: Right-click on ad, choose "Copy Link", then paste here → (This may not be possible with some types of ads) More information about our https://sourceforge.net/p/modules/mailman/message/28650889/ ad policies X You seem to have CSS turned off. Please don't fill out this field. You seem to have CSS turned off. Please don't fill out this field. Briefly describe the problem (required): Upload screenshot of ad (required): Select a file, or drag & drop file here. ✔ ✘ Please provide the ad click URL, if possible: Home Browse Environment Modules Mailing Lists Environment Modules Manage syntax error your shell environment variables and aliases Brought to you by: leomania, rkowen, sirdude Summary Files Reviews Support Wiki Mailing Lists Code Tickets ▾ Patches Bugs Feature Requests Discussion Git ▾ Environment Modules - C Environment Modules - Tcl Only modules-interest Re: [Modules] bash init problem? Re: [Modules] bash init problem? From: Mark Suhovecky