mkdir different behavior in Makefile and Terminal -



mkdir different behavior in Makefile and Terminal -

i facing problem mkdir command in linux ubuntu 14. want create multiple directories @ same level, in makefile have done this.

mkdir -v /opt/dir/{dir1,dir2,dir3}

and output

mkdir: created directory '/opt/dir/{dir1,dir2,dir3}'

but when ran command direct on terminal, got expected result.

'mkdir: created directory /opt/dir/dir1' 'mkdir: created directory /opt/dir/dir2' 'mkdir: created directory /opt/dir/dir3'

i unable find problem.

any suggestion helpful. in advance.

it looks me problem not mkdir works differently, shell you're using in terminal differs used create run commands. default create (gnu or other) uses /bin/sh.

try add together shell=/bin/bash makefile.

makefile mkdir

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -