Re: pre-announce exmh-2.7.2
Brent Welch <[email protected]>
| Newsgroups | gmane.mail.exmh.devel |
|---|---|
| Message-ID | <[email protected]> |
The only way out of this rathole is to split exmh-strip into two phases, the first phase displays the suggested filename, and the second phase does the extraction. Be my guest :-) If the current facility is too risky for you, avoid it. I'll gladly accept modifications for a two-phase exmh-strip. I suggest that it take an optional third(or more) argument, which is either "-prompt" or the filename(s) to use when extracting the parts. >>>Robert Elz said: > Date: Wed, 05 Jan 2005 08:32:32 -0800 > From: Brent Welch <[email protected]> > Message-ID: <[email protected]> > > | file tail protects against filenames with any leading components. > | > | set filename "foo;echo 'hibrent::0:0::::' >> /etc/passwd;baz" > | > | file tail $filename > | => passwd;baz > > That's useless, the filename could just as easily be > > "foo;cd ..;cd ..;cd ..;cd ..;cd ..;cd ..;cd etc;echo '...' >>passwd;baz " > > But, I wouldn't worry about this mind of nonsense, as long as creating the > file itself does no harm, worrying about what other (broken) applications > might do with "unusual" file names is way out of scope. > > kre > -- Brent Welch Software Architect, Panasas Inc Delivering the premier storage system for scalable Linux clusters www.panasas.com [email protected]