less icon indicating copy to clipboard operation
less copied to clipboard

less prints file change commands into file when specified on command line

Open rnkn opened this issue 6 months ago • 2 comments

less prints file change commands into file when specified on command line.

To Reproduce

  1. echo foo > foo; echo bar > bar
  2. less +2:x foo bar

Expected results

bar
~
~

Actual Results

 :xbar
~
~

Version

$ less --version
less 661 (PCRE2 regular expressions)
Copyright (C) 1984-2024  Mark Nudelman

less comes with NO WARRANTY, to the extent permitted by law.
For information about the terms of redistribution,
see the file named README in the less distribution.
Home page: https://greenwoodsoftware.com/less

Curiously this does not happen with OpenBSD less.

rnkn avatar Aug 01 '24 02:08 rnkn