‹ BackHN Continuity

Thread

cp: -r or -R?

126 points · 110 comments · zdw

  1. spijdar · · focus · HN ↗
    > nobody™ still runs coreutils from 24 years ago.

      Sprite 2.077 pc386
      
              Welcome to Sprite
      
      root@cherimoya [1] # cp --version
      GNU fileutils 3.9
      root@cherimoya [2] # cp --help | grep recurs
        -r                           copy recursively, non-directories as files
        -R, --recursive              copy directories recursively
      root@cherimoya [3] #
    
    I'll take the honorary title of nobody ;-)
    1. kijin · · focus · HN ↗
      You should have run that command as the `nobody` user.
      1. tosti · · focus · HN ↗
        But nobody doesn't have a valid shell.
        1. kijin · · focus · HN ↗
          Nothing you can't fix if you have root. :)
          1. laxd · · focus · HN ↗
            Use toor for good measure.
    2. collinfunk · · focus · HN ↗
      Hey, I perfectly understand if not. But do you have the sources that were used to build those binaries?

      The oldest version on the GNU ftp server is fileutils-3.13 [1]. I vaguely remember having some links to older versions, probably somewhere in my archived mail. But I don't remember if it was fileutils-3.9 or earlier.

      I co-maintain GNU coreutils, so I am interested in reading them. If you have them, you can email me privately or on the public mailing list. Both are listed on the homepage [2].

      [1] <a href="https:&#x2F;&#x2F;ftp.gnu.org&#x2F;old-gnu&#x2F;fileutils&#x2F;" rel="nofollow">https:&#x2F;&#x2F;ftp.gnu.org&#x2F;old-gnu&#x2F;fileutils&#x2F; [2] <a href="https:&#x2F;&#x2F;www.gnu.org&#x2F;software&#x2F;coreutils&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.gnu.org&#x2F;software&#x2F;coreutils&#x2F;

      1. tosti · · focus · HN ↗
        You can find ancient distros on archive.org and some of those have src.rpm&#x27;s Slackware also had a source dvd with iirc regular tarballs.
        1. collinfunk · · focus · HN ↗
          Interesting, thanks for the pointers!
          1. tosti · · focus · HN ↗
            Also, Debian has archives of old releases. You might want to try your luck there.
            1. eichin · · focus · HN ↗
              A quick look found <a href="https:&#x2F;&#x2F;archive.debian.org&#x2F;debian&#x2F;dists&#x2F;Debian-0.93R6&#x2F;source&#x2F;base&#x2F;fileutils-3.12-2.tar.gz" rel="nofollow">https:&#x2F;&#x2F;archive.debian.org&#x2F;debian&#x2F;dists&#x2F;Debian-0.93R6&#x2F;source... and <a href="https:&#x2F;&#x2F;archive.debian.org&#x2F;debian&#x2F;dists&#x2F;buzz&#x2F;main&#x2F;source&#x2F;base&#x2F;fileutils-3.12-4.tar.gz" rel="nofollow">https:&#x2F;&#x2F;archive.debian.org&#x2F;debian&#x2F;dists&#x2F;buzz&#x2F;main&#x2F;source&#x2F;bas... but nothing earlier. (Amusingly the nearby diff says the sources came from &quot;prep.ai.mit.edu:&#x2F;pub&#x2F;gnu&#x2F;fileutils-3.12.tar.gz&quot; in the &quot;haven&#x27;t heard that name in a long time&quot; vein...)
      2. Sophira · · focus · HN ↗
        When you get to packages that are old enough, DiscMaster[0] is helpful for this since these packages were often on magazine cover CD-ROMs! There are several files matching &quot;fileutils-3.9.tar.gz&quot;[1]; the two variants seem to be the original GNU release (182.9KiB, the one you&#x27;re looking for), and what looks like the result of a &quot;make install&quot; (57.4KiB).

        The original GNU release of fileutils-3.6 is there too (but be careful; one of the two files appears to include Makefiles from a .&#x2F;configure run, while the other doesn&#x27;t), though 3.7 and 3.8 don&#x27;t appear to be. You&#x27;ll need to sift through to find what you need in some cases, but it&#x27;s an incredibly valuable research tool.

        Note: To download a file, you&#x27;ll need to click on the filename, and then click the small arrow at the top that looks like a red arrow pointing down to a white box with red&#x2F;green lights. (Which I assume is their representation of a desktop computer.)

        [0] <a href="https:&#x2F;&#x2F;discmaster.textfiles.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;discmaster.textfiles.com&#x2F;

        [1] <a href="https:&#x2F;&#x2F;discmaster.textfiles.com&#x2F;search?q=fileutils-3.9.tar.gz" rel="nofollow">https:&#x2F;&#x2F;discmaster.textfiles.com&#x2F;search?q=fileutils-3.9.tar....

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.