Cannot find “unexpected token” causing syntax error The Next CEO of Stack OverflowBash : syntax error near unexpected token ' done 'syntax error near unexpected token `<'syntax error near unexpected token `fi'syntax error near unexpected token `('syntax error near unexpected token 'else' and possible incorrect indentationsBash: Syntax error - Unexpected near token 'else'How to loop through the files extracted by a find command and pass is as input to another command?Error “syntax error near unexpected token `('?”Nested case in bash scriptsyntax error near unexpected token `do
Free fall ellipse or parabola?
How do I secure a TV wall mount?
Why was Sir Cadogan fired?
Are British MPs missing the point, with these 'Indicative Votes'?
What does this strange code stamp on my passport mean?
What day is it again?
Another proof that dividing by 0 does not exist -- is it right?
How dangerous is XSS
Do I need to write [sic] when including a quotation with a number less than 10 that isn't written out?
Find the majority element, which appears more than half the time
What steps are necessary to read a Modern SSD in Medieval Europe?
Cannot restore registry to default in Windows 10?
Could a dragon use its wings to swim?
Create custom note boxes
"Eavesdropping" vs "Listen in on"
Calculating discount not working
Incomplete cube
Salesforce opportunity stages
Variance of Monte Carlo integration with importance sampling
Man transported from Alternate World into ours by a Neutrino Detector
How should I connect my cat5 cable to connectors having an orange-green line?
Calculate the Mean mean of two numbers
Why can't we say "I have been having a dog"?
Can you teleport closer to a creature you are Frightened of?
Cannot find “unexpected token” causing syntax error
The Next CEO of Stack OverflowBash : syntax error near unexpected token ' done 'syntax error near unexpected token `<'syntax error near unexpected token `fi'syntax error near unexpected token `('syntax error near unexpected token 'else' and possible incorrect indentationsBash: Syntax error - Unexpected near token 'else'How to loop through the files extracted by a find command and pass is as input to another command?Error “syntax error near unexpected token `('?”Nested case in bash scriptsyntax error near unexpected token `do
Could somebody help a greenhorn to identify this syntax error?
Or should I just retype it ?
The "configure" script I am analyzing has other , similar code, and they all work fine.
Error
./configure-ex-2: line 13548: syntax error near unexpected token `('
./configure-ex-2: line 13548: `$as_echo_n "@line $LINENO BUG here syntax (?) checking for $ac_word... " >&6; }'
code snippet
set dummy lcov;
ac_word=$2
$as_echo "$as_me:$as_lineno-$LINENO: checking for $ac_word" >&5
$as_echo_n "@line $LINENO BUG here systax (?) checking for $ac_word... " >&6;
echo "@line $LINENO BUG here syntax (?) **************************************************"
if $ac_cv_prog_enable_coverage+: false; then :
$as_echo_n "(cached) " >&6
else
if test -n "$enable_coverage"; then
ac_cv_prog_enable_coverage="$enable_coverage" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
shell-script
New contributor
add a comment |
Could somebody help a greenhorn to identify this syntax error?
Or should I just retype it ?
The "configure" script I am analyzing has other , similar code, and they all work fine.
Error
./configure-ex-2: line 13548: syntax error near unexpected token `('
./configure-ex-2: line 13548: `$as_echo_n "@line $LINENO BUG here syntax (?) checking for $ac_word... " >&6; }'
code snippet
set dummy lcov;
ac_word=$2
$as_echo "$as_me:$as_lineno-$LINENO: checking for $ac_word" >&5
$as_echo_n "@line $LINENO BUG here systax (?) checking for $ac_word... " >&6;
echo "@line $LINENO BUG here syntax (?) **************************************************"
if $ac_cv_prog_enable_coverage+: false; then :
$as_echo_n "(cached) " >&6
else
if test -n "$enable_coverage"; then
ac_cv_prog_enable_coverage="$enable_coverage" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
shell-script
New contributor
Could you add the line numbers to your snippet if possible, or just single out line 13548? Also what is$as_echo
?
– Jesse_b
2 days ago
Aconfigure
script is usually generated from aconfigure.ac
file byautoconf
. There is probably an error in that file. Parsing errors in shell scripts may turn out to be related to a missing quote or parenthesis somewhere way before the reported line number. Would you mind sharing the script thatautoconf
reads?
– Kusalananda♦
2 days ago
add a comment |
Could somebody help a greenhorn to identify this syntax error?
Or should I just retype it ?
The "configure" script I am analyzing has other , similar code, and they all work fine.
Error
./configure-ex-2: line 13548: syntax error near unexpected token `('
./configure-ex-2: line 13548: `$as_echo_n "@line $LINENO BUG here syntax (?) checking for $ac_word... " >&6; }'
code snippet
set dummy lcov;
ac_word=$2
$as_echo "$as_me:$as_lineno-$LINENO: checking for $ac_word" >&5
$as_echo_n "@line $LINENO BUG here systax (?) checking for $ac_word... " >&6;
echo "@line $LINENO BUG here syntax (?) **************************************************"
if $ac_cv_prog_enable_coverage+: false; then :
$as_echo_n "(cached) " >&6
else
if test -n "$enable_coverage"; then
ac_cv_prog_enable_coverage="$enable_coverage" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
shell-script
New contributor
Could somebody help a greenhorn to identify this syntax error?
Or should I just retype it ?
The "configure" script I am analyzing has other , similar code, and they all work fine.
Error
./configure-ex-2: line 13548: syntax error near unexpected token `('
./configure-ex-2: line 13548: `$as_echo_n "@line $LINENO BUG here syntax (?) checking for $ac_word... " >&6; }'
code snippet
set dummy lcov;
ac_word=$2
$as_echo "$as_me:$as_lineno-$LINENO: checking for $ac_word" >&5
$as_echo_n "@line $LINENO BUG here systax (?) checking for $ac_word... " >&6;
echo "@line $LINENO BUG here syntax (?) **************************************************"
if $ac_cv_prog_enable_coverage+: false; then :
$as_echo_n "(cached) " >&6
else
if test -n "$enable_coverage"; then
ac_cv_prog_enable_coverage="$enable_coverage" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
shell-script
shell-script
New contributor
New contributor
edited 2 days ago
Jesse_b
14.3k23574
14.3k23574
New contributor
asked 2 days ago
anneanne
1061
1061
New contributor
New contributor
Could you add the line numbers to your snippet if possible, or just single out line 13548? Also what is$as_echo
?
– Jesse_b
2 days ago
Aconfigure
script is usually generated from aconfigure.ac
file byautoconf
. There is probably an error in that file. Parsing errors in shell scripts may turn out to be related to a missing quote or parenthesis somewhere way before the reported line number. Would you mind sharing the script thatautoconf
reads?
– Kusalananda♦
2 days ago
add a comment |
Could you add the line numbers to your snippet if possible, or just single out line 13548? Also what is$as_echo
?
– Jesse_b
2 days ago
Aconfigure
script is usually generated from aconfigure.ac
file byautoconf
. There is probably an error in that file. Parsing errors in shell scripts may turn out to be related to a missing quote or parenthesis somewhere way before the reported line number. Would you mind sharing the script thatautoconf
reads?
– Kusalananda♦
2 days ago
Could you add the line numbers to your snippet if possible, or just single out line 13548? Also what is
$as_echo
?– Jesse_b
2 days ago
Could you add the line numbers to your snippet if possible, or just single out line 13548? Also what is
$as_echo
?– Jesse_b
2 days ago
A
configure
script is usually generated from a configure.ac
file by autoconf
. There is probably an error in that file. Parsing errors in shell scripts may turn out to be related to a missing quote or parenthesis somewhere way before the reported line number. Would you mind sharing the script that autoconf
reads?– Kusalananda♦
2 days ago
A
configure
script is usually generated from a configure.ac
file by autoconf
. There is probably an error in that file. Parsing errors in shell scripts may turn out to be related to a missing quote or parenthesis somewhere way before the reported line number. Would you mind sharing the script that autoconf
reads?– Kusalananda♦
2 days ago
add a comment |
0
active
oldest
votes
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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
);
);
anne is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f509605%2fcannot-find-unexpected-token-causing-syntax-error%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
anne is a new contributor. Be nice, and check out our Code of Conduct.
anne is a new contributor. Be nice, and check out our Code of Conduct.
anne is a new contributor. Be nice, and check out our Code of Conduct.
anne is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- 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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f509605%2fcannot-find-unexpected-token-causing-syntax-error%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
Could you add the line numbers to your snippet if possible, or just single out line 13548? Also what is
$as_echo
?– Jesse_b
2 days ago
A
configure
script is usually generated from aconfigure.ac
file byautoconf
. There is probably an error in that file. Parsing errors in shell scripts may turn out to be related to a missing quote or parenthesis somewhere way before the reported line number. Would you mind sharing the script thatautoconf
reads?– Kusalananda♦
2 days ago