This script name is hello

```
for i in $(ls $*);do
    x=$(echo $(basename $i".md"));
    pandoc $i -t "latex" -o $x.pdf;
done

```

When I write this

```
$ ./hello *bye.md

```

This error

```
ls: cannot access 'test': No such file or directory  
ls: cannot access 'de': No such file or directory  
ls: cannot access 'bye.md': No such file or directory
basename: extra operand ‘bye.md’  
Try 'basename --help' for more information.  
./hello: 2: ./hello: pandoc: not found  
basename: extra operand ‘.md’  
Try 'basename --help' for more information.  
./hello: 2: ./hello: pandoc: not found  

```

I dont understand why my script hello doesn't work correctly ?

And the following command does not create pdf in the correct directories:

```
$ ./hello */test.md  

```