[makefile] [bash] Unterminated quoted string

whired123

Member
Joined
Nov 15, 2021
Messages
151
Reaction score
10
Credits
1,097
Code:
$ cat 1.makefile
test:
    ABC=123 echo xxx



$ cat 2.makefile
SHELL += /bin/bash
test:
    ABC=123 echo xxx

Let's do some tests

Code:
$ make -f 1.makefile
ABC=123 echo xxx
xxx

OK

Code:
$ make -f 2.makefile
ABC=123 echo xxx
/bin/bash: 3: Syntax error: Unterminated quoted string
make: *** [2.makefile:3: test] Error 2

Why?
 


Don't bump.

Command line, coding and scripting inquiries belong in Command Line.

Moving this there,

Wizard
 


Follow Linux.org

Staff online

Members online


Latest posts

Top