Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: new and updated completions
- X-seq: zsh-workers 15581
- From: Chmouel Boudjnah <chmouel@xxxxxxxxxxxxxxxx>
- To: Borsenkow Andrej <Andrej.Borsenkow@xxxxxxxxxxxxxx>
- Subject: Re: PATCH: new and updated completions
- Date: 06 Aug 2001 19:47:51 +0200
- Cc: Oliver Kiddle <opk@xxxxxxxxxxxxx>, zsh-workers@xxxxxxxxxx
- In-reply-to: <3B6ED75A.9000809@xxxxxxxxxxxxxx> (Borsenkow Andrej's message of "Mon, 06 Aug 2001 21:43:54 +0400")
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <3B6EA97A.CD6DCB4F@xxxxxxxxxxxxx> <m34rrlz2ew.fsf@xxxxxxxxxxxxxxxxxxxxxxx> <3B6ED75A.9000809@xxxxxxxxxxxxxx>
Borsenkow Andrej <Andrej.Borsenkow@xxxxxxxxxxxxxx> writes:
> Chmouel Boudjnah wrote:
>
> > Oliver Kiddle <opk@xxxxxxxxxxxxx> writes:
> >
> >>anyone can think of a good way to detect RedHat/Mandrake, please let me
> >>
> > /etc/{mandrake,redhat}-release
> >
>
> Meaning
yep better to do a :
if [[ -e /etc/mandrake-release ]]; then
we are on Mandrake
elif [[ -e /etc/redhat-release ]]; then
we are on RedHat
fi
mandrake one before redhat.
> if [[ -e /etc/mandrake-release ]]; then
> we are on Mandrake
> else ...
>
> {pts/1}% ll /etc/*-release
> -rw-r--r-- 1 root root 45 ??? 19 22:30
> /etc/mandrake-release
> lrwxrwxrwx 1 root root 16 ??? 23 00:32
> /etc/redhat-release -> mandrake-release
Messages sorted by:
Reverse Date,
Date,
Thread,
Author