@@ -446,7 +446,7 @@ fn do_not_exit_directory() {
446446#[test]
447447fn pager_basic() {
448448 let assert = bat()
449− .env("PAGER", "printf pager-output")
449+ .env("PAGER", "echo pager-output")
450450 .arg("--paging=always")
451451 .arg("test.txt")
452452 .assert();
@@ -454,14 +454,14 @@ fn pager_basic() {
454454 println!("stdout={:#?}", stdout);
455455 assert
456456 .success()
457− .stdout("pager-output");
457+ .stdout("pager-output\n");
458458}
459459
460460#[test]
461461fn pager_overwrite() {
462462 let assert = bat()
463− .env("PAGER", "printf other-pager")
464− .env("BAT_PAGER", "printf pager-output")
463+ .env("PAGER", "echo other-pager")
464+ .env("BAT_PAGER", "echo pager-output")
465465 .arg("--paging=always")
466466 .arg("test.txt")
467467 .assert();
@@ -469,13 +469,13 @@ fn pager_overwrite() {
469469 println!("stdout={:#?}", stdout);
470470 assert
471471 .success()
472− .stdout("pager-output");
472+ .stdout("pager-output\n");
473473}
474474
475475#[test]
476476fn pager_disable() {
477477 let assert = bat()
478− .env("PAGER", "printf other-pager")
478+ .env("PAGER", "echo other-pager")
479479 .env("BAT_PAGER", "")
480480 .arg("--paging=always")
481481 .arg("test.txt")
@@ -510,7 +510,7 @@ fn config_read_arguments_from_file() {
510510 println!("stdout={:#?}", stdout);
511511 assert
512512 .success()
513− .stdout("dummy-pager-from-config");
513+ .stdout("dummy-pager-from-config\n");
514514}
515515
516516#[test]