Re: emacs and /etc/alternatives

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
Fedora-maintainers mailing list
Fedora-maintainers@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-maintainers

--
Fedora-maintainers-readonly mailing list
Fedora-maintainers-readonly@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-maintainers-readonly

[Index of Archives]     [Fedora Users]     [Fedora Development]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux