Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Feb 2022 06:04:21 +0900 (JST)
From:      Yasuhiro Kimura <yasu@utahime.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: FreeBSD 12.3-R and environment variables
Message-ID:  <20220214.060421.2204344428991538671.yasu@utahime.org>
In-Reply-To: <c5c7d9c5-d0bd-6697-8e47-365246af2fdd@holgerdanske.com>
References:  <c5c7d9c5-d0bd-6697-8e47-365246af2fdd@holgerdanske.com>

next in thread | previous in thread | raw e-mail | index | archive | help
From: David Christensen <dpchrist@holgerdanske.com>
Subject: FreeBSD 12.3-R and environment variables
Date: Sun, 13 Feb 2022 12:45:20 -0800

> freebsd-questions:
> 
> I recently installed FreeBSD 12.3-R:
> 
> 2022-02-13 12:42:03 toor@f4 ~
> # freebsd-version ; uname -a
> 12.3-RELEASE
> FreeBSD f4.tracy.holgerdanske.com 12.3-RELEASE FreeBSD 12.3-RELEASE
> r371126 GENERIC amd64
> 
> 
> Why do these environment variables say 12.2, and not 12.3?
> 
> 2022-02-13 12:42:07 toor@f4 ~
> # set | grep -i freebsd
> BASH_VERSINFO=([0]="5" [1]="1" [2]="12" [3]="0" [4]="release"
> [5]="amd64-portbld-freebsd12.2")
> MACHTYPE=amd64-portbld-freebsd12.2
> OSTYPE=freebsd12.2
> 
> 
> David
> 	
> 

You seems to install bash by using official package and use it as
login shell. Right? If so the answer is that official packages for
12.x are built on 12.2-RELEASE. If you build and install bash on
12.3-RELEASE or after 12.2-RELEASE reachs its EoL, the result will
change such as following.

# set | grep -i freebsd
BASH_VERSINFO=([0]="5" [1]="1" [2]="12" [3]="0" [4]="release" [5]="amd64-portbld-freebsd12.3")
MACHTYPE=amd64-portbld-freebsd12.3
OSTYPE=freebsd12.3

---
Yasuhiro Kimura



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20220214.060421.2204344428991538671.yasu>