delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/12/29/21:30:18

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: "Steven E. Harris" <seh AT panix DOT com>
Subject: Defeated by "alternatives": unison
Date: Tue, 29 Dec 2009 21:28:33 -0500
Lines: 54
Message-ID: <83zl515h66.fsf@torus.sehlabs.com>
Mime-Version: 1.0
User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (windows-nt)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Since updating my Cygwin installation to version 1.7, I can no longer
run "unison" from the command line. Unison uses the "alternatives"
facility to select among multiple installed versions. The symbolic links
all look to be set up properly, but the program can't be invoked in the
normal ways.

I've tried this same sequence of commands using the shells zsh, bash,
and ash, and all fail in the same way.

Witness:

,----
| % which unison
| unison not found
| 
| % /usr/sbin/alternatives --display unison
| unison - status is manual.
|  link currently points to /usr/bin/unison-2.27
| /usr/bin/unison-2.32 - priority 2032
| /usr/bin/unison-2.27 - priority 2027
| Current `best' version is /usr/bin/unison-2.32.
| 
| % ls -l /usr/bin/unison*
| -rwxr-xr-x 1 seh root 1076224 2009-10-01 11:27 /usr/bin/unison-2.27.exe
| -rwxr-xr-x 1 seh root 1123840 2009-10-01 11:31 /usr/bin/unison-2.32.exe
| lrwxrwxrwx 1 seh None      28 2005-03-24 22:09 /usr/bin/unison.exe ->
|                                                /etc/alternatives/unison.exe
| 
| torus:~% /usr/bin/unison
| zsh: no such file or directory: /usr/bin/unison
| 
| % /usr/bin/unison.exe
| zsh: no such file or directory: /usr/bin/unison.exe
| 
| % /etc/alternatives/unison
| Usage: unison [options]
|     or unison root1 root2 [options]
|     or unison profilename [options]
| 
| For a list of options, type "unison -help".
| For a tutorial on basic usage, type "unison -doc tutorial".
| For other documentation, type "unison -doc topics".
`----

I used to just be able to type "unison" at the command prompt and invoke
it like any other program. Is this a permissions problem? I have found
that other programs using the "alternatives" facility work as
expected. Why is "unison" different?

[I've tried posting this message with the cygcheck output attached, but
 the messages get rejected.]

-- 
Steven E. Harris


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019