From 1cafc4eff622ba8ca84e39348bc2114d346faf75 Mon Sep 17 00:00:00 2001 From: Jason Nader Date: Tue, 21 Jan 2020 22:55:41 +0900 Subject: [PATCH] Amend comments incorrectly referring to `sed` --- share/completions/df.fish | 2 +- tests/test_functions/mktemp.fish | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/share/completions/df.fish b/share/completions/df.fish index 833e87e21..1f77d036f 100644 --- a/share/completions/df.fish +++ b/share/completions/df.fish @@ -3,7 +3,7 @@ # # -# Test if we are using GNU sed +# Test if we are using GNU df # set -l is_gnu diff --git a/tests/test_functions/mktemp.fish b/tests/test_functions/mktemp.fish index bb4cf41e4..d99d48b8f 100644 --- a/tests/test_functions/mktemp.fish +++ b/tests/test_functions/mktemp.fish @@ -47,10 +47,10 @@ function mktemp exit 1 end - # GNU sed treats the final occurrence of a sequence of X's as the template token. - # BSD sed only treats X's as the template token if they suffix the string. + # GNU mktemp treats the final occurrence of a sequence of X's as the template token. + # BSD mktemp only treats X's as the template token if they suffix the string. # So let's outlaw them anywhere besides the end. - # Similarly GNU sed requires at least 3 X's, BSD sed requires none. Let's require 3. + # Similarly GNU mktemp requires at least 3 X's, BSD mktemp requires none. Let's require 3. begin set -l chars (string split '' -- $template) set -l found_x