diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2002-06-17 05:55:42 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2002-06-17 05:55:42 +0000 |
commit | 0c3f74704f4525d9a6e55b27c791688e312573c7 (patch) | |
tree | d4eb429f6361f0b2c21bed367cd74c2ecd79c3d5 /doc | |
parent | 588fadc48e9ab796859ac6d41928cbbc982465b1 (diff) | |
download | diffutils-0c3f74704f4525d9a6e55b27c791688e312573c7.tar.gz |
(Special Files): Document behavior of symlink loops.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/diff.texi | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/doc/diff.texi b/doc/diff.texi index 1624de9..8011400 100644 --- a/doc/diff.texi +++ b/doc/diff.texi @@ -4502,13 +4502,16 @@ to understand these extensions. Some files are neither directories nor regular files: they are unusual files like symbolic links, device special files, named pipes, and -sockets. Currently, @command{diff} treats symbolic links like regular files; -it treats other special files like regular files if they are specified -at the top level, but simply reports their presence when comparing -directories. This means that @command{patch} cannot represent changes -to such files. For example, if you change which file a symbolic link -points to, @command{diff} outputs the difference between the two files, -instead of the change to the symbolic link. +sockets. Currently, @command{diff} treats symbolic links as if they +were the pointed-to files, except that a recursive @command{diff} +reports an error if it detects infinite loops of symbolic links (e.g., +symbolic links to @file{..}). @command{diff} treats other special +files like regular files if they are specified at the top level, but +simply reports their presence when comparing directories. This means +that @command{patch} cannot represent changes to such files. For +example, if you change which file a symbolic link points to, +@command{diff} outputs the difference between the two files, instead +of the change to the symbolic link. @c This might not be a good idea; is it wise for root to install devices @c this way? |