I am new to the console, and attempting to write a function that will create a directory with the name of the directory being the function argument. This is my function so far:
clidir() {
mkdir $1
}
Whenever I enter an argument with a space, it creates two directories. I have tried:
clidir "New Folder"
and
clidir New\ Folder
and they both create multiple directories.
Any help is welcome.