less prints file change commands into file when specified on command line.
To Reproduce
echo foo > foo; echo bar > bar
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
less prints file change commands into file when specified on command line.
To Reproduce
echo foo > foo; echo bar > bar
less +2:x foo bar
Expected results
Actual Results
Version
Curiously this does not happen with OpenBSD less.