Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

different about MacOS less and more #23

Closed
gMan1990 opened this issue Aug 30, 2019 · 1 comment
Closed

different about MacOS less and more #23

gMan1990 opened this issue Aug 30, 2019 · 1 comment

Comments

@gMan1990
Copy link

gMan1990 commented Aug 30, 2019

  • uname -a
    Darwin *deMBP 17.2.0 Darwin Kernel Version 17.2.0: Fri Sep 29 18:27:05 PDT 2017; root:xnu-4570.20.62~3/RELEASE_X86_64 x86_64

  • gsha1sum /usr/bin/more /usr/bin/less
    6f6ec068da5870eb28b04d0cc50abc5ec5e4b85e /usr/bin/more
    6f6ec068da5870eb28b04d0cc50abc5ec5e4b85e /usr/bin/less

  • more --version
    less 487 (POSIX regular expressions)
    Copyright (C) 1984-2016 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.
    Homepage: http://www.greenwoodsoftware.com/less

  • Q: /usr/bin/more /usr/bin/less same file looks? but have different output:

    • more -n 3 long.txt
      look like linux more or linux pg
    • less -n 3 long.txt
      less file 3 and long.txt
@gwsw
Copy link
Owner

gwsw commented Aug 30, 2019

Less attempts to behave in a manner compatible with the POSIX "more" spec when it is invoked with the name "more". See the man page section "COMPATIBILITY WITH MORE" for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants