I am using Mac OS X Snow Leopard and when I type

ls c *

this is what I get in my terminal:

clock:
PSD               demo.html         jquery.tzineClock script.js         styles.css

clock2:

clojure-presentations:
Clojure-1up.pdf            ClojureInTheField-1up.pdf  license.html
Clojure-4up.pdf            README
ClojureForRubyists-1up.pdf keynote

coffee-script:
Cakefile      README        bin           examples      index.html    package.json  test
LICENSE       Rakefile      documentation extras        lib           src           vendor

By default I am using Bash.

link|improve this question

50% accept rate
Now I realize that there was a space between c and star. And that caused all this trouble. Anyways learned something new. – Nadal May 22 '10 at 16:54
feedback

migrated from stackoverflow.com May 22 '10 at 16:48

This question came from our site for professional and enthusiast programmers.

4 Answers

up vote 4 down vote accepted

It's just drilling into all the directories that match on c*, which can be cured by saying

ls -d c*

instead.

link|improve this answer
feedback

ls c * lists the file c and all files/directories * One can configure the shell to stop at once, because c does not exist while you meant c*

link|improve this answer
feedback

That's how it shows the contents of directories. Did you mean to add -d?

link|improve this answer
feedback

Looks like sometrhing has aliases ls to ls -R.

What is the result of alias ls

Fix is probably

alias ls=
link|improve this answer
2  
No​, not this​. – Ignacio Vazquez-Abrams May 22 '10 at 16:36
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.