From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4705 invoked by alias); 6 Aug 2017 17:55:43 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 22794 Received: (qmail 10010 invoked by uid 1010); 6 Aug 2017 17:55:43 -0000 X-Qmail-Scanner-Diagnostics: from mail-wm0-f45.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(74.125.82.45):SA:0(1.5/5.0):. Processed in 1.699639 secs); 06 Aug 2017 17:55:43 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: * X-Spam-Status: No, score=1.5 required=5.0 tests=FREEMAIL_FROM,FREEMAIL_REPLYTO, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, RCVD_IN_SORBS_SPAM,SPF_PASS,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.1 X-Envelope-From: linux.tech.guy@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to; bh=Q419Kbio/QabPHZEracL3N2u4gNk/ztlncu62IKgL20=; b=g/712xCbYByP+FaGBBqkaXLWlzm33jKGMhj/m+sOfHhDLbIaJdIFWJvW7P+INaGR+l h02h1+4J6Gw4yKGu6knKPUdTvsYcN6DIwqBbNyGsfzifJ/7Z2eCGDBNSiDlbvNZsF6+2 Zqrn8TlJh2ei0zIvfR3ADVTouu6ECjNyKodppiI/hn5K2Rc5vnTNSHxVQjqYLvTS60AT sFteaV/zv9IKObfvspRQ33ZMoCrGtyF2Plpza0LVsokJyxVVEnovsv7HtSHuhWaV2yYZ R88ODyNkfTyyR48HbjWiXE7a2i+nzHD2nhCC3fbMZKnyEcX5v4DAvhP5X+0cVxyWbR5N g/Mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to; bh=Q419Kbio/QabPHZEracL3N2u4gNk/ztlncu62IKgL20=; b=AmI3/tQqnmC69KpU9hqQ6RMEzLA3HI4sOk1WRCnz+lUlSw0C9Gk7cay6O5fMrhzQ2e Ca8WBS0oJWvXM2/No3pmCJS+Jy//5R11PXwj1MjA/viowSipS8gfK61MRbfwcAZOmA/g G4E6He5KbVpqwC6HsnxkxnHvtksEBPSMzVSZhtvnFJianDgCeJttFGyHpbc74d3IevcF XLTbePQraZSm+sEf6OihpECGCOo95m7f7jChxQdBxqmj5yaObiA7XNC86UboSrb5v8lr O8Fi1h5nGwope+wwoqDpUo/hZxgtBM3wh4jhDe5xdNLR7qu4i6feAjU1s7UORWKh+cLA vuPQ== X-Gm-Message-State: AIVw111FqzjX0Iami0WyVwMrGxOWOd0QjpOjcDi/nVETCbm0ZYrvBYlm UbBuul6/34v+hUC0GlEMH/oCJbN6aqrE X-Received: by 10.80.140.253 with SMTP id r58mr9289624edr.123.1502042136999; Sun, 06 Aug 2017 10:55:36 -0700 (PDT) MIME-Version: 1.0 Reply-To: linuxtechguy@gmail.com In-Reply-To: <1603101502012908@web54j.yandex.ru> References: <76131501981203@web60g.yandex.ru> <1603101502012908@web54j.yandex.ru> From: Jim Date: Sun, 6 Aug 2017 12:55:36 -0500 Message-ID: Subject: Re: Does mandir get saved some place? To: zsh-users@zsh.org Content-Type: multipart/alternative; boundary="f403045c1fc8037b1205561970c1" --f403045c1fc8037b1205561970c1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Nikolay, On Sun, Aug 6, 2017 at 4:48 AM, Nikolay Aleksandrovich Pavlov (ZyX) < kp-pav@yandex.ru> wrote: > > Wondering why do you install different zsh versions with one prefix? This > would need some hacks like moving mandir you mentioned. Simple answer, by default this is what happens when you build zsh. Zsh has this "self protection system" built into the the build and install, so it doesn't overwrite unless your building the "same version". So, for someone new to the zsh build process, they can just checkout and build another version and each version will work. All by default and all with the /usr/local/ prefix. May not be the best way, and it is not the only way, but it appears to be the default way. You don't need man pages to "run" any version of zsh. They are nice to have when needed. After 30+ years of system administration(UNIX/Linux) on multi user systems, I view things from the point of view of how this would best work for all users on that system. Old habits are sometimes hard to break. > For testing purposes I usually just compile with prefix > `~/.local-${app}[-${app_version}]`, this way each application is > installed into its own directory and additionally does not need superuser > rights for installation or creating a package. For system-wide > installations there is /opt which may be used for this purpose. > Like most things with UNIX/Linux there are any number of ways of doing this= . Some may be better or worst then others for one reason or another, but will still work. Ask 12 people how they do it, and you are likely to get 12 answers and or at least 12 variants of the same answer. > > Of course, if you need all zsh=E2=80=99s available at once you will need = to remove > `zsh` executable, keeping only `zsh-{version}` and modify $PATH, either i= n > .zshrc or in some place like /etc/env.d. > > Not sure I understand what you are saying here, or at least why you need to remove the `zsh` executable. I have to assume you are not talking about removing /bin/zsh. I guess I'm looking at it from a slightly different point of view. Having only one `zsh` is not a bad idea. > This variant is also more universal: not all software uses its version in > its paths. > One of many reasons I love zsh. > > Alternative is making =E2=80=9Ca unique path for each version=E2=80=9D be= computable based > on `$ZSH_VERSION`, in any case even if new variable is created it will be > only available in new zsh versions. > True. Sadly, but true. But I think there is a different way to approach this. Just need to think about this for a while. Useful discussion, thanks. Jim --f403045c1fc8037b1205561970c1--