Syntax error near unexpected token `{workingDir=$(pwd)'why syntax error near unexpected token ' fi 'Syntax...

The use of multiple foreign keys on same column in SQL Server

What do the dots in this tr command do: tr .............A-Z A-ZA-Z <<< "JVPQBOV" (with 13 dots)

LaTeX closing $ signs makes cursor jump

Can divisibility rules for digits be generalized to sum of digits

What defenses are there against being summoned by the Gate spell?

How do we improve the relationship with a client software team that performs poorly and is becoming less collaborative?

How to find program name(s) of an installed package?

"You are your self first supporter", a more proper way to say it

Email Account under attack (really) - anything I can do?

Mathematical cryptic clues

Is it important to consider tone, melody, and musical form while writing a song?

How do I create uniquely male characters?

Which models of the Boeing 737 are still in production?

Why, historically, did Gödel think CH was false?

How to write a macro that is braces sensitive?

Do I have a twin with permutated remainders?

can i play a electric guitar through a bass amp?

Can a Warlock become Neutral Good?

What do you call a Matrix-like slowdown and camera movement effect?

Accidentally leaked the solution to an assignment, what to do now? (I'm the prof)

How old can references or sources in a thesis be?

How much RAM could one put in a typical 80386 setup?

Fencing style for blades that can attack from a distance

A newer friend of my brother's gave him a load of baseball cards that are supposedly extremely valuable. Is this a scam?



Syntax error near unexpected token `{workingDir=$(pwd)'


why syntax error near unexpected token ' fi 'Syntax error near unexpected token `('-bash: syntax error near unexpected token `&'Bash : Syntax error near unexpected token '('Compiling: ./configure: syntax error near unexpected tokenbash :syntax error near unexpected token `('bash: syntax error near unexpected token '<'syntax error near unexpected token `Geant4'bash: syntax error near unexpected token `do'Bash script: syntax error near unexpected token `('






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















Here is the problematic line in question.



function gradeUpdate() {workingDir=$(pwd); cd $GRADE_DIR; rm -Rf gradingScript/; git clone https://github.com/[redacted]/gradingScript/; cd $workingDir}


Of course, [redacted] in this case is the username of the repository owner. I can guarantee that $GRADE_DIR is a valid directory, and if I execute cd $GRADE_DIR in the Terminal, it works fine.



Also, if I enter all of the contents of the function (not the function itself) into the Terminal, then it works fine.










share|improve this question







New contributor




Gigi Bayte 2 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • function gradeUpdate() { workingDir=$(pwd); cd $GRADE_DIR; rm -Rf gradingScript/; git clone https://github.com/[redacted]/gradingScript/; cd $workingDir; }

    – Ravexina
    17 mins ago








  • 1





    Space between curly braces and semicolon after last command ...

    – Ravexina
    16 mins ago




















0















Here is the problematic line in question.



function gradeUpdate() {workingDir=$(pwd); cd $GRADE_DIR; rm -Rf gradingScript/; git clone https://github.com/[redacted]/gradingScript/; cd $workingDir}


Of course, [redacted] in this case is the username of the repository owner. I can guarantee that $GRADE_DIR is a valid directory, and if I execute cd $GRADE_DIR in the Terminal, it works fine.



Also, if I enter all of the contents of the function (not the function itself) into the Terminal, then it works fine.










share|improve this question







New contributor




Gigi Bayte 2 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • function gradeUpdate() { workingDir=$(pwd); cd $GRADE_DIR; rm -Rf gradingScript/; git clone https://github.com/[redacted]/gradingScript/; cd $workingDir; }

    – Ravexina
    17 mins ago








  • 1





    Space between curly braces and semicolon after last command ...

    – Ravexina
    16 mins ago
















0












0








0








Here is the problematic line in question.



function gradeUpdate() {workingDir=$(pwd); cd $GRADE_DIR; rm -Rf gradingScript/; git clone https://github.com/[redacted]/gradingScript/; cd $workingDir}


Of course, [redacted] in this case is the username of the repository owner. I can guarantee that $GRADE_DIR is a valid directory, and if I execute cd $GRADE_DIR in the Terminal, it works fine.



Also, if I enter all of the contents of the function (not the function itself) into the Terminal, then it works fine.










share|improve this question







New contributor




Gigi Bayte 2 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












Here is the problematic line in question.



function gradeUpdate() {workingDir=$(pwd); cd $GRADE_DIR; rm -Rf gradingScript/; git clone https://github.com/[redacted]/gradingScript/; cd $workingDir}


Of course, [redacted] in this case is the username of the repository owner. I can guarantee that $GRADE_DIR is a valid directory, and if I execute cd $GRADE_DIR in the Terminal, it works fine.



Also, if I enter all of the contents of the function (not the function itself) into the Terminal, then it works fine.







command-line bash syntax






share|improve this question







New contributor




Gigi Bayte 2 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question







New contributor




Gigi Bayte 2 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question






New contributor




Gigi Bayte 2 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 19 mins ago









Gigi Bayte 2Gigi Bayte 2

11




11




New contributor




Gigi Bayte 2 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Gigi Bayte 2 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Gigi Bayte 2 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.













  • function gradeUpdate() { workingDir=$(pwd); cd $GRADE_DIR; rm -Rf gradingScript/; git clone https://github.com/[redacted]/gradingScript/; cd $workingDir; }

    – Ravexina
    17 mins ago








  • 1





    Space between curly braces and semicolon after last command ...

    – Ravexina
    16 mins ago





















  • function gradeUpdate() { workingDir=$(pwd); cd $GRADE_DIR; rm -Rf gradingScript/; git clone https://github.com/[redacted]/gradingScript/; cd $workingDir; }

    – Ravexina
    17 mins ago








  • 1





    Space between curly braces and semicolon after last command ...

    – Ravexina
    16 mins ago



















function gradeUpdate() { workingDir=$(pwd); cd $GRADE_DIR; rm -Rf gradingScript/; git clone https://github.com/[redacted]/gradingScript/; cd $workingDir; }

– Ravexina
17 mins ago







function gradeUpdate() { workingDir=$(pwd); cd $GRADE_DIR; rm -Rf gradingScript/; git clone https://github.com/[redacted]/gradingScript/; cd $workingDir; }

– Ravexina
17 mins ago






1




1





Space between curly braces and semicolon after last command ...

– Ravexina
16 mins ago







Space between curly braces and semicolon after last command ...

– Ravexina
16 mins ago












0






active

oldest

votes












Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});






Gigi Bayte 2 is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1131758%2fsyntax-error-near-unexpected-token-workingdir-pwd%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes








Gigi Bayte 2 is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















Gigi Bayte 2 is a new contributor. Be nice, and check out our Code of Conduct.













Gigi Bayte 2 is a new contributor. Be nice, and check out our Code of Conduct.












Gigi Bayte 2 is a new contributor. Be nice, and check out our Code of Conduct.
















Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1131758%2fsyntax-error-near-unexpected-token-workingdir-pwd%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Why do type traits not work with types in namespace scope?What are POD types in C++?Why can templates only be...

Will tsunami waves travel forever if there was no land?Why do tsunami waves begin with the water flowing away...

Simple Scan not detecting my scanner (Brother DCP-7055W)Brother MFC-L2700DW printer can print, can't...