This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: `touch' created wrong file without giving error
Corinna Vinschen <corinna-cygwin@cygwin.com> wrote:
> On Jun 4 08:41, Peter J. Acklam wrote:
>
> > I tried creating a file named " foo ", i.e., with two leading
> > and two trailing blanks using "touch". It turned out that
> > "touch" created the file, but without the two trailing blanks.
> > It might be that a file name with trailing blanks can't be
> > created on an NTFS file system, but "touch" shouldn't create
> > the wrong file but rather give an error telling that it
> > failed. Silently creating the wrong name is generally bad:
>
> That's exactly what Windows does. Trailing spaces and dots are
> silently ignored.
Ok. I just expected Cygwin to behave better. :-/
Peter
--
Peter J. Acklam - pjacklam@online.no - http://home.online.no/~pjacklam
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/