Am Mittwoch, 24. Januar 2007 23:40 schrieb James G. Sack (jim): > Dexter Filmore wrote: > > Am Mittwoch, 24. Januar 2007 03:09 schrieb James G. Sack (jim): > >> James G. Sack (jim) wrote: > >>> .. > >>> This rule would tell you to write > >>> > >>>> else > >>>> #if a filename is given, just use that > >>>> $DUM dd if="$1" of="$2" > >>>> fi > >>> > >>> quoting $DUM is not important in this case, but does no harm. > >> > >> Heh, I forgot to quote it! I meant to say > >> This rule would tell you to write > >> > >>> else > >>> #if a filename is given, just use that > >>> "$DUM" dd if="$1" of="$2" > >>> fi > > > > Uh.. but.. but that's what I do isn't it? > > Yes. I thought you were saying something like: > > "I plan on doing this but am worried that it might not work"
No, I am *sure* it doesn't work, I tried :) > > Have you done an explicit experiment that gives error messages? > Perhaps I'm am not understanding what you are asking, eh? Well, set DUM to "echo" so it won't execute the command but instead show you what the resulting command would look like, then you'll see what I mean when running it on a filename with spaces. -- -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GCS d--(+)@ s-:+ a- C++++ UL++ P+>++ L+++>++++ E-- W++ N o? K- w--(---) !O M+ V- PS+ PE Y++ PGP t++(---)@ 5 X+(++) R+(++) tv--(+)@ b++(+++) DI+++ D- G++ e* h>++ r* y? ------END GEEK CODE BLOCK------ http://www.stop1984.com http://www.againsttcpa.com -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
