Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Use a free program to simplify dragging from Terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use a free program to simplify dragging from Terminal
Authored by: rdj on Aug 30, '07 07:42:02AM
The simplest fix for this is to modify the "drag" shell script to read:

exec /Applications/Drag.app/Contents/MacOS/Drag "$@"

Note the double-quotes around "$@".

This is important for anyone who writes Unix shell scripts: you must be careful about the effects of quoting after substitutions. "$*" would not be correct in this case, for example, because it would result in a single quoted token with all of the substituted parameters included in the one token, separated by a space (technically, the IFS setting.)

Anyway, using "$@" takes care of the blanks-in-file-specifications issue.

-^-rdj-^-

[ Reply to This | # ]