Amend comments incorrectly referring to sed

This commit is contained in:
Jason Nader 2020-01-21 22:55:41 +09:00 committed by Fabian Homborg
parent 0918b537ac
commit 1cafc4eff6
2 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@
#
#
# Test if we are using GNU sed
# Test if we are using GNU df
#
set -l is_gnu

View File

@ -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