🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #685

more thoughts on fileutils

#685
From: Richard Stallman
Date: Sun, 30 Aug 1992 20:57
14 lines
1208 bytes
      Suppose "foo" is such a node.  In
    that case "mv bar foo" should delete the existing foo (and the virtual
    hierarchy underneath it), replacing it with bar.  "mv bar foo/" should
    move bar into the directory foo, giving it the name foo/bar, and
    leaving the rest of the virtual hierarchy under foo untouched.

It follows from this that the canonical way to use mv to rename into a
directory named foo must be `mv bar foo/'.  `mv bar foo' is something
that may or may not work.

So it is proper that `mv bar foo/' work now on Unix systems.  On the
GNU system, this can work by passing `bar/' to the kernel unmodified.
But if on other systems that is not true, then on those other systems
mv needs to compensate by deleting the /.
Technical Details
Message-ID: <9208310457.AA03800@mole.gnu.ai.mit.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!gnu.ai.mit.edu!rms
References: <9208282057.AA12744@wookumz.gnu.ai.mit.edu>

Show Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!gnu.ai.mit.edu!rms
From: rms@gnu.ai.mit.edu (Richard Stallman)
Subject: more thoughts on fileutils
Message-ID: <9208310457.AA03800@mole.gnu.ai.mit.edu>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
References: <9208282057.AA12744@wookumz.gnu.ai.mit.edu>
Distribution: gnu
Date: Sun, 30 Aug 1992 20:57:28 GMT
Approved: bug-gnu-utils@prep.ai.mit.edu
Lines: 17