emacs and /etc/alternatives

Andrew Haley aph at redhat.com
Fri Mar 9 18:35:22 UTC 2007


Jesse Keating writes:
 > On Friday 09 March 2007 13:27:39 Andrew Haley wrote:
 > > I thought they could, as long as the files were the identical.  And,
 > > at the present time, the file /usr/bin/emacs does not cause a
 > > conflict.
 > 
 > If /usr/bin/emacs is exactly the same across the two packages, how does it 
 > decide what to launch?

zebedee:~/.Trash $ cat /usr/bin/emacs
#!/bin/sh

PROG_NAME=`basename $0`

for i in x nox; do
  [ -x "/usr/bin/${PROG_NAME}-$i" ] && exec -a ${PROG_NAME} /usr/bin/${PROG_NAME}-$i "$@"
done

echo "Can't find $PROG_NAME" 1>&2
exit 1




More information about the Fedora-maintainers mailing list