Mail Archives: djgpp-workers/2001/10/01/09:32:29
> From: Tim Van Holder <tim DOT van DOT holder AT pandora DOT be>
> Date: 01 Oct 2001 14:39:30 +0200
>
> I was thinking along the lines of a Unixy program building a Unixy path
> list using /dev/:bogus:, which would lead to '/dev/' and 'bogus' being
> used.
That could indeed happen, but I don't think it would be dangerous. I
can't think about any reasonable use of PATH that would be dangerous.
> > As for "[bogus]", it is a valid file name, so, while extremely
> > improbable, it could exist on a user's machine.
> It's only valid under Windows though (not sure about Windows+LFN=n).
No, it's not valid under LFN=n. However, the vast majority of DJGPP
users run on Windows and with LFN=y.
> > I thought about other characters which are invalid in file names, but
> > all of them seem to run a risk of unintended consequences. For
> > example, `*' and `?' could expand into something, `>' or `|' could
> > cause creation of files or even change the semantics of the command,
> > etc. We could use control characters (below the blank), though. If
> > someone has ideas, please speak up.
> But control chars are technically valid in filenames, aren't they?
No, I think DOS and Windows disallow them.
> Such files would be incredibly rare though. Isn't there a control char
> that displays as a frowny face? That would seem appropriate.
^A and ^B display as faces, but they are smiling faces.
- Raw text -