Because the second command creates (or modifies) a file within the current directory. Ie. dir.txt.
BTW. Depending what you want to do with it, this is probably a really bad way to get a list of files.
In reply to Re: differences in dir?
by BrowserUk
in thread differences in dir?
by aajello
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |