{"action":"closed","issue":{"url":"https://api.github.com/repos/afni/afni/issues/31","repository_url":"https://api.github.com/repos/afni/afni","labels_url":"https://api.github.com/repos/afni/afni/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/afni/afni/issues/31/comments","events_url":"https://api.github.com/repos/afni/afni/issues/31/events","html_url":"https://github.com/afni/afni/issues/31","id":151763237,"number":31,"title":"/bin/sh: 2: Bad substitution  but works with /bin/bash  on debian sid","user":{"login":"yarikoptic","id":39889,"avatar_url":"https://avatars.githubusercontent.com/u/39889?v=3","gravatar_id":"","url":"https://api.github.com/users/yarikoptic","html_url":"https://github.com/yarikoptic","followers_url":"https://api.github.com/users/yarikoptic/followers","following_url":"https://api.github.com/users/yarikoptic/following{/other_user}","gists_url":"https://api.github.com/users/yarikoptic/gists{/gist_id}","starred_url":"https://api.github.com/users/yarikoptic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yarikoptic/subscriptions","organizations_url":"https://api.github.com/users/yarikoptic/orgs","repos_url":"https://api.github.com/users/yarikoptic/repos","events_url":"https://api.github.com/users/yarikoptic/events{/privacy}","received_events_url":"https://api.github.com/users/yarikoptic/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-04-28T23:09:37Z","updated_at":"2016-04-29T12:36:03Z","closed_at":"2016-04-29T12:36:03Z","body":"My eyes and foo is tired, not sure what it complaints about:\r\n```shell\r\n(git)hopa:~exppsy/afni-upstream[nf-ctest]src/XmHTML\r\n$> make -n\r\n( for dir in lib ; do \\\r\n\t(set -x ; cd $dir ; make  all SHELL='/bin/sh' VERSION='1107' CC='cc' RM='rm -f' AR='ar cq ' MV='mv' CP='cp' LN='ln -sf' RANLIB='ranlib' MAKEDEPEND='gccmakedep' CFLAGS='' LDFLAGS='' CPPFLAGS='-DNDEBUG -DHAVE_REGEX_H -DHAVE_LIBJPEG  -DMotif' INCLUDES='-I. -I../include -I../include/common -I../../include -I../../include/common -I../../../jpeg-6b -I../../include/XmHTML -I/usr/X11R6/include  ' LOADLIBES='-L/usr/X11R6/lib -L../../.. -lXm -lXpm -lXmu -lXt -lXext -lX11 -lSM -lICE -ljpeg -lpng -lz -lm' DMALLOCLIB='' ZLIBLIB='-lz -lm' PLATFORM='Motif' ) ; \\\r\ndone)\r\n/bin/sh: 2: Bad substitution\r\nMakefile:203: recipe for target 'all' failed\r\nmake: *** [all] Error 2\r\n```\r\nit builds fine after in there\r\n```\r\n-SHELL     = /bin/sh\r\n+SHELL     = /bin/bash\r\n```\r\n```shell\r\n$> make -n     \r\n( for dir in lib ; do \\\r\n\t(set -x ; cd $dir ; make  all SHELL='/bin/bash' VERSION='1107' CC='cc' RM='rm -f' AR='ar cq ' MV='mv' CP='cp' LN='ln -sf' RANLIB='ranlib' MAKEDEPEND='gccmakedep' CFLAGS='' LDFLAGS='' CPPFLAGS='-DNDEBUG -DHAVE_REGEX_H -DHAVE_LIBJPEG  -DMotif' INCLUDES='-I. -I../include -I../include/common -I../../include -I../../include/common -I../../../jpeg-6b -I../../include/XmHTML -I/usr/X11R6/include  ' LOADLIBES='-L/usr/X11R6/lib -L../../.. -lXm -lXpm -lXmu -lXt -lXext -lX11 -lSM -lICE -ljpeg -lpng -lz -lm' DMALLOCLIB='' ZLIBLIB='-lz -lm' PLATFORM='Motif' ) ; \\\r\ndone)\r\n(:1): \r\ncd lib\r\n(:1): \r\nmake all SHELL=/bin/bash VERSION=1107 CC=cc 'RM=rm -f' 'AR=ar cq ' MV=mv CP=cp 'LN=ln -sf' RANLIB=ranlib MAKEDEPEND=gccmakedep CFLAGS= LDFLAGS= 'CPPFLAGS=-DNDEBUG -DHAVE_REGEX_H -DHAVE_LIBJPEG  -DMotif' 'INCLUDES=-I. -I../include -I../include/common -I../../include -I../../include/common -I../../../jpeg-6b -I../../include/XmHTML -I/usr/X11R6/include  ' 'LOADLIBES=-L/usr/X11R6/lib -L../../.. -lXm -lXpm -lXmu -lXt -lXext -lX11 -lSM -lICE -ljpeg -lpng -lz -lm' DMALLOCLIB= 'ZLIBLIB=-lz -lm' PLATFORM=Motif\r\nmake[1]: Entering directory '/home/yoh/deb/gits/pkg-exppsy/afni-upstream/src/XmHTML/lib'\r\n(set -x; cd common; make all  )\r\n(:0): \r\ncd common\r\n(:0): \r\nmake all\r\nmake[2]: Entering directory '/home/yoh/deb/gits/pkg-exppsy/afni-upstream/src/XmHTML/lib/common'\r\nrm -f events.o\r\ncc  -DVERSION=1107 -DNDEBUG -DHAVE_REGEX_H -DHAVE_LIBJPEG  -DMotif -I. -I../include -I../include/common -I../../include -I../../include/common -I../../../jpeg-6b -I../../include/XmHTML -I/usr/X11R6/include   -c events.c\r\nrm -f hash.o\r\n...\r\n```"}}