Checking the version of less we have

[?]
Jan 7, 2021, 9:51 PM
GLRGFBCWZYQEP6BG2IXYMXVZ5ETPWKNA2YJSIRHBCAAOAHJYT2YQC

Dependencies

  • [2] 5YDI33C4 Fixing pager on OSX
  • [3] 5DVRL6MF Hard-unrecord
  • [4] 2K7JLB4Z No pager on Windows
  • [5] SE4RJYBZ No pager on Windows (really not)
  • [*] SXEYMYF7 Fixing the bad changes in history (unfortunately, by rebooting).

Change contents

  • replacement in pijul/src/commands/mod.rs at line 99
    [3.3][2.0:28]()
    #[cfg(target_os = "linux")]
    [3.3]
    [3.16]
    #[cfg(unix)]
  • replacement in pijul/src/commands/mod.rs at line 101
    [3.29][3.29:78]()
    pager::Pager::with_pager("less -RF").setup()
    [3.29]
    [3.2909]
    if let Ok(less) = std::process::Command::new("less")
    .args(&["--version"])
    .output()
    {
    let regex = regex::bytes::Regex::new("less ([0-9]+)").unwrap();
    if let Some(caps) = regex.captures(&less.stdout) {
    if std::str::from_utf8(&caps[1])
    .unwrap()
    .parse::<usize>()
    .unwrap()
    >= 530
    {
    pager::Pager::with_pager("less -RF").setup()
    } else {
    pager::Pager::new().setup()
    }
    }
    }
  • replacement in pijul/src/commands/mod.rs at line 121
    [3.80][2.29:62]()
    #[cfg(not(target_os = "linux"))]
    [3.80]
    [3.0]
    #[cfg(not(unix))]