Reply
Thread Tools
cmdowns's Avatar
Posts: 100 | Thanked: 13 times | Joined on Mar 2008
#1
I'm trying to workout some problems I'm having with PyGame. I was hoping I could find a doc file for it in Xterm so I ran this command (as root)
Code:
 # find / -name pygame* -print
And all it gives me is
Code:
BusyBox v1.61 (2008-05-22 10:32:35 EEST) multi-call binary

Usage find [PATH. . .] [EXPRESSION]
Does the Xterm's find not support the wild cards, or is the problem my syntax?

Thanks for your consideration and assistance.
 
ace's Avatar
Posts: 296 | Thanked: 80 times | Joined on Dec 2007
#2
Try putting your expression in single quotes, i.e. 'pygame*'.
__________________
[SIGPIC][/SIGPIC]
 

The Following User Says Thank You to ace For This Useful Post:
Posts: 157 | Thanked: 96 times | Joined on Nov 2007 @ Oxford, UK
#3
On a Linux system the shell expands wildcards before passing them to the program. (The DOS command line works differently and leaves it up to the programs to interpret the arguments.)

That means if you already had some files in the current directory called pygame1 and pygame2 you actually ran "find -name pygame1 pygame2 -print". You command will work as-is only if there isn't anything to match pygame* in the current folder.

As ace said quoting the argument prevents the shell expanding it.

Also you don't need -print as that is the default action on Linux (though not on all versions of Unix).
 

The Following User Says Thank You to Duncan For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 13:24.