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
Post a Comment