unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: vc-sccs.el sends bad args to cmp(1) via vcdiff script
Date: Thu, 09 Mar 2006 10:21:37 -0700	[thread overview]
Message-ID: <dupo8c$dt4$1@sea.gmane.org> (raw)
In-Reply-To: <20060308201443.29875.qmail@web30611.mail.mud.yahoo.com>

Jim Marks wrote:
 > This problem surfaces on Sun Solaris when trying to use
 > version control with SCCS as the backend.
 >
 > The source file gnu/share/emacs/21.4/lisp/vc-sccs.el has the following
 > defun:
 >
 > (defun vc-sccs-workfile-unchanged-p (file)
 >   "SCCS-specific implementation of vc-workfile-unchanged-p."
 >   (zerop (apply 'vc-do-command nil 1 "vcdiff" (vc-name file)
 >                 (list "--brief" "-q"
 >                       (concat "-r" (vc-workfile-version file))))))
 >
 > The important thing here is that the "--brief" option gets passed
 > to vcdiff as well as the "-r" option.
 >
 > On my system, vcdiff is a helper script in
 >
 > gnu/libexec/emacs/21.4/sparc-sun-solaris2.8/vcdiff
 >
 > It contains this code:
 >
 >
 >                 case $f in
 >                 --brief)
 >                         DIFF=cmp;;
 >
 > and, later, executes $DIFf.  This causes cmp to be invoked
 > with a "-r" option.  I can't find any Unix-clone on which
 > cmp(1) takes "-r".  This will always cause certain vc operations
 > to fail on systems where SCCS is the vc backend.

Are you sure?  I have 21.4 installed, and the vcdiff script also
processes the -rSID1 and -rSID2 options so that they are not passed to
cmp:

		-r?*)
			case $sid1 in
			'')
				sid1=$f
				;;
			*)
				case $sid2 in
				?*) echo "$usage" >&2; exit 2 ;;
				esac
				sid2=$f
				;;
			esac
			;;

Perhaps your problem is that vc-workfile-version is returning nil, which
would cause "-r" to be passed to vcdiff, which it cannot handle.

-- 
Kevin Rodgers

      reply	other threads:[~2006-03-09 17:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-08 20:14 vc-sccs.el sends bad args to cmp(1) via vcdiff script Jim Marks
2006-03-09 17:21 ` Kevin Rodgers [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='dupo8c$dt4$1@sea.gmane.org' \
    --to=ihs_4664@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).