Solved Buggins, system version update ends in vi editor!

Buggins, the upgrade from system version 11.2 RELEASE to 12.0 RELEASE ends in the vi editor.
 

Attachments

  • screenhot.png
    screenhot.png
    3.5 KB · Views: 202
  • screnmd.png
    screnmd.png
    4.1 KB · Views: 252
Sorry, I don't see it. I just see the update script running, and then a shell prompt. Looks like root is logged in (the "#" prompt).

If you don't like using vi, then in your favorite shell's configuration file, the the variables EDITOR and VISUAL to "emacs". Since I use bash, I do it in .bashrc; other shells vary.
 
Sorry, I don't see it. I just see the update script running, and then a shell prompt. Looks like root is logged in (the "#" prompt).

If you don't like using vi, then in your favorite shell's configuration file, the the variables EDITOR and VISUAL to "emacs". Since I use bash, I do it in .bashrc; other shells vary.
In the reconfirm for system upgrade from one version to another, in this case from 11.2 to 12.0 with the freebsd-update fetch or freebsd-update install command generates automatically the vi editor display in the course of the system upgrade.

Another example of reconfirmation of the system update and when the key is pressed to visualize all the update ends up generating automatically visualizing the vi editor.
 

Attachments

  • scrennhot3.png
    scrennhot3.png
    4.9 KB · Views: 265
  • screenhot4.png
    screenhot4.png
    2.3 KB · Views: 192
You can set the PAGER back to the way it used to run in previous versions by typing:

# ee /root/.cshrc

This is the configuration file for the root terminal. Change the PAGER line to read as follows, the only word needing changed is "less" to "more":

Code:
setenv    PAGER    more

That will do away with what you're seeing and put things back to the way they were when you ran the command.
 
By the way, whoever made that baroque and overly complicated monster "less" into part of the base installation, and then even worse the default pager, needs to be flogged. I would love to have a simple version of more, which implements the POSIX standard and nothing else.
 
Well. Fun fact. more(1) is less(1).

Code:
SHA256 (/usr/bin/more) = 2bcf049ca59e288f2e6097d805141dda58a4d4ca372b29bf82b454f5878603f9
SHA256 (/usr/bin/less) = 2bcf049ca59e288f2e6097d805141dda58a4d4ca372b29bf82b454f5878603f9
 
In the reconfirm for system upgrade from one version to another, in this case from 11.2 to 12.0 with the freebsd-update fetch or freebsd-update install command generates automatically the vi editor display in the course of the system upgrade.
It's less(1), not vi(1).
 
You can set the PAGER back to the way it used to run in previous versions by typing:

# ee /root/.cshrc

This is the configuration file for the root terminal. Change the PAGER line to read as follows, the only word needing changed is "less" to "more":

Code:
setenv    PAGER    more

That will do away with what you're seeing and put things back to the way they were when you ran the command.

Thank you for your answer, it is solved, what would be the purpose of leaving in a standard way less and not more?
 

Attachments

  • screenhot5.png
    screenhot5.png
    9.8 KB · Views: 216
See my rant above: Indeed, by default the more installed in FreeBSD is now less. Here is another way to verify that:
Code:
# ls -lF -i `which more` `which less`
3852595 -r-xr-xr-x  2 root  wheel  132712 Jul  1 20:51 /usr/bin/less*
3852595 -r-xr-xr-x  2 root  wheel  132712 Jul  1 20:51 /usr/bin/more*
See, same inode?

Whoever came up with that idea needs to ... drink less eggnog with brandy! Merry Christmas!
 
more has been less for a long time, here is an example:
Code:
root@kg-quiet# uname -a
FreeBSD kg-quiet.kg4.no 10.4-RELEASE-p9 FreeBSD 10.4-RELEASE-p9 #0: Tue May  8 07:05:01 UTC 2018     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64
root@kg-quiet# ls -li /usr/bin/less /usr/bin/more
10121398 -r-xr-xr-x  2 root  wheel  154720 Mar 21  2018 /usr/bin/less
10121398 -r-xr-xr-x  2 root  wheel  154720 Mar 21  2018 /usr/bin/more
the program acts differently based on the name ('more' or 'less'). So that's not the droids you are looking for. The change is in $PAGER
Code:
root@kg-quiet# echo $PAGER
more
on a 12.0 machine
Code:
root@kg-core1# uname -a
FreeBSD kg-core1.kg4.no 12.0-RELEASE FreeBSD 12.0-RELEASE r341666 GENERIC  amd64
root@kg-core1# echo $PAGER
less
 
Back
Top