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 2 Weeks Ago
Prevet Prevet is offline
Shell Scout
 
Join Date: Oct 2017
Posts: 139
Default Question about: WARNING: file viewed via LESSOPEN

I get this warning when I press 'v' in less.

Quote:
WARNING: This file was viewed via LESSOPEN (press RETURN)
Can this warning be turned off? Should it be turned off? Perhaps I should not be doing this at all?

I am using the highlight package with the following:

Code:
export LESSOPEN="| $(which highlight) %s \
--out-format xterm256 \
--force -s base16/solarized-dark --no-trailing-nl"
export LESS=" -R"

alias less='less -N -g -i --underline-special'
Reply With Quote
  #2   (View Single Post)  
Old 2 Weeks Ago
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,059
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 2 Weeks Ago
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,597
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 2 Weeks Ago
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,059
Default

Perhaps $ unset VISUAL might work.
Reply With Quote
Reply

Thread Tools
Display Modes

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 04:29 PM.


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