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

Re: RFD: Essential packages, /, and /usr



On Tue, Jun 18, 2002 at 05:14:23AM -0400, Clint Adams wrote:
> Apparently if you have zsh as /bin/sh and try to install xdm, the
> postinst will happily tell you what version of debianutils to install to
> get readlink.

?

First I've heard of this.  What's going on?

Oh, I know.

if ! command -v readlink > /dev/null 2>&1; then
  message "The readlink command was not found.  Please install version" \
          "1.13.1 or later of the debianutils package."
  readlink () {
    # returns what symlink in $1 actually points to
    perl -e '$l = shift; exit 1 unless -l $l; $r = readlink $l; exit 1 unless $r; print "$r\n"' $1;
  }
fi

Yeah, well, I'll be happy to change this once we have some official
Policy, or an offical Best Current Practice statement.

I'll let the shell maintainers finish their penis war first, though.

-- 
G. Branden Robinson                |          You live and learn.
Debian GNU/Linux                   |          Or you don't live long.
branden@debian.org                 |          -- Robert Heinlein
http://people.debian.org/~branden/ |

Attachment: pgpbdQd5bP75n.pgp
Description: PGP signature


Reply to: