home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / volume.27 / text0022.txt < prev    next >
Encoding:
Text File  |  1992-05-20  |  1.0 KB  |  39 lines

  1. Submitted-by: davidf@mks.com ("David J. Fiander")
  2.  
  3. So is there such a beast?  If there is, then I have the first
  4. entry.
  5.  
  6. According to .2D11, 'cp -R' does not have to process
  7. subdirectories below the top level directory.  For example,
  8. given the following structure,
  9.  
  10.   srcdir           destdir
  11.      \
  12.      subdir
  13.        \
  14.       file
  15.  
  16. a conforming cp is perfectly capable of generating the result
  17.  
  18.   srcdir           destdir
  19.      \                \
  20.      subdir          srcdir
  21.        \
  22.       file
  23.  
  24. when given the command line "cp -R srcdir destdir", without
  25. generating any diagnostics.
  26.  
  27. Support:  POSIX.2D11 lines 3557-3564.  In particular, lines
  28. 3563-4 state "It is unspecified if cp shall attempt to copy
  29. files in the file hierarchy rooted in source_file."
  30.  
  31.  
  32. [ As far as I know, there is no Son of Weirdnix.  I like the
  33.   idea, however:  it's been too long since we've had such a
  34.   contest, even though the C people have one once a year 8).
  35.   Is anybody willing to volunteer prizes? -- mod ]
  36.  
  37. Volume-Number: Volume 27, Number 23
  38.  
  39.