I can't figure out this.
I have a small bash script like this one;
It should create a folder called "test" in home directory and inside this folder it should exist 4 folders named aa bb cc dd.
BUT NO,
It creates the folder "test" and inside this one it creates one single folder with name {aa,bb,cc,dd}!!!!!!!
If i run the command "mkdir -p ~/test/{aa,bb,cc,dd}" directly from Konsole it's OK, but inside the script no.
What's the problem with braces {} inside script??
I've also tried with bash instead of sh (#!/bin/bash), but the problem is the same.
Any ideas please
Thanks in advance.
I have a small bash script like this one;
#!/bin/sh
(...)
mkdir -p ~/test/{aa,bb,cc,dd}
(...)
(...)
mkdir -p ~/test/{aa,bb,cc,dd}
(...)
BUT NO,
It creates the folder "test" and inside this one it creates one single folder with name {aa,bb,cc,dd}!!!!!!!
If i run the command "mkdir -p ~/test/{aa,bb,cc,dd}" directly from Konsole it's OK, but inside the script no.
What's the problem with braces {} inside script??
I've also tried with bash instead of sh (#!/bin/bash), but the problem is the same.
Any ideas please
Thanks in advance.
Comment