Article View: gnu.utils.bug
Article #704Re: GNU fileutils v3.2.3 alter pathnames by removing trailing slashes
From: Thomas M. Breuel
Date: Sat, 22 Aug 1992 21:31
Date: Sat, 22 Aug 1992 21:31
27 lines
1643 bytes
1643 bytes
|> The fix is not indiscriminate bashing of trailing slashes, as |> currently implemented. The fix is to remove the generic truncation of |> trailing slashes, then to fix whatever minor bugs prevent the use of |> pathnames containing trailing slashes. | |Fix everyone's shells, or everyone's kernels? I don't think there is anything to fix in either the shell or the kernel. File completion in bash is just fine (I like getting trailing slashes for directories), as is the behavior of the UNIX kernel of not accepting trailing slashes in certain situations. |I don't offhand see a |better solution than what the GNU utilities currently do. But |specific suggestions are welcome. I have come to rely on the fact that if I write "mv foo bar/" and "bar" is a plain file, I get an error message, rather than have "mv" silently remove "bar". What would you say if type checking were suddenly removed from ANSI C? If you want this non-standard behavior in the GNU file utilities, maybe you can make it optional via an environment variable. I certainly don't feel safe using the current GNU file utilities, and, furthermore, I wonder what other dangerous "improvements" may have been made. Thomas.
Technical Details
Message-ID:
<9208221731.AA12191@idiap.ch>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!idiap.CH!tmbShow Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!idiap.CH!tmb From: tmb@idiap.CH (Thomas M. Breuel) Subject: Re: GNU fileutils v3.2.3 alter pathnames by removing trailing slashes Message-ID: <9208221731.AA12191@idiap.ch> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Sat, 22 Aug 1992 21:31:14 GMT Approved: bug-gnu-utils@prep.ai.mit.edu Lines: 28