|
|
A copout way to make it work with bash
This is a copout, but you could make a bash-executible file that duplicates the commands of the csh alias. This works for me:
The shebang (#!) line should be the first line in the file, and everything else should be on the second line. Save the file with the name spot, and run -Mark PS. Nice hint!
A copout way to make it work with bash
:o) Same idea, same moment !
A copout way to make it work with bash
I think it works either way. When double-quoted, $* expands to all of your arguments separated by spaces in one set of quotes. $@ expands to all your arguments. (When double-quoted, it expands to all your arguments, each double-quoted.) I think your way ($@) is actually cleaner because you can control how the arguments are passed to mdfind, but my brief tests found no actual differences in the results. When I changed the word order and used my "$*" version, I got the same files. I have not checked, but I think mdfind parses out all the words and returns files that have each. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|