Bug 90960
Summary: | diff file1 file2 ... filen directory | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | John Dalbec <jpdalbec> |
Component: | diffutils | Assignee: | Tim Waugh <twaugh> |
Status: | CLOSED WONTFIX | QA Contact: | Mike McLean <mikem> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.1 | Keywords: | FutureFeature |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i686 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Enhancement | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2003-05-16 10:08:03 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
John Dalbec
2003-05-15 19:40:23 UTC
This isn't hard to do in a few lines of shell: #!/bin/bash TMPDIR=$(mktemp -d mydiff.XXXXXX) || exit 1 FILES=("$@") DIR=${FILES[$(($# - 1))]} unset FILES[$(($# - 1))] cp -l ${FILES[@]} "$TMPDIR" diff -ur "$TMPDIR" "$DIR" | \ filterdiff --strip=1 --addprefix=$(dirname "$DIR/.")/ rm -rf "$TMPDIR" It's not something we're likely to add to diffutils I'm afraid, since for one thing it makes the meaning of several of the options much less clear-cut. Feel free to discuss it with the upstream maintainer of diffutils of course. diffutils 2.7.2 has the "--to-file" option which allows diff file1 file2 file3 --to-file=directory |