DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 15th July 2020
Prevet Prevet is offline
Shell Scout
 
Join Date: Oct 2017
Posts: 84
Default Question about: WARNING: file viewed via LESSOPEN

deleted

Last edited by Prevet; 2nd December 2022 at 03:42 PM.
Reply With Quote
  #2   (View Single Post)  
Old 15th July 2020
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,984
Default

From looking through the source code, it appears the warning is issued if VISUAL is also defined. If you wish to, you can revise /usr/src/usr.bin/less/command.c to remove it.
Reply With Quote
  #3   (View Single Post)  
Old 16th July 2020
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,132
Default

Instead of jggimi hint to patch less(1), you could try to use env(1) to empty the VISUAL environment variable. Something like:
Code:
$ env VISUAL=''" less
The problem with this workaround is that the VISUAL variable although set to nothing, it still exists. Don't know whether /usr/src/usr.bin/less/command.c can differentiate between VISUAL being set or being empty ;-)
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #4   (View Single Post)  
Old 16th July 2020
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,984
Default

Perhaps $ unset VISUAL might work.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
/etc/daily gives incorrect warning acampbell OpenBSD General 8 12th May 2017 04:12 AM
window manager configuration file question jb_daefo FreeBSD Ports and Packages 0 18th October 2015 01:30 PM
How to fix this perl: warning? sw2wolf OpenBSD General 0 22nd March 2012 08:10 AM
cvs warning message inquiry revzalot OpenBSD Installation and Upgrading 1 4th September 2009 12:12 PM
tcpdump snaplen WARNING bsdnewbie999 OpenBSD General 1 17th March 2009 03:24 AM


All times are GMT. The time now is 08:53 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick