How to loop on strings and remove the string array
问题 I've the following code inside make file which gets from command array of strings apps := $(shell fxt run apps) go: @for v in $(apps) ; do \ echo inside recipe loop with sh command: $$v ; \ done The command returns array like [app1 app2 appN] (could be many apps inside) But I need it to be app1 app2 appN , any idea how to remove the array [] ? when I run make I got the following inside recipe loop with sh command: [app inside recipe loop with sh command: app2] 回答1: You simple can use subst