mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 10:57:30 +08:00
Amend comments incorrectly referring to sed
This commit is contained in:
parent
0918b537ac
commit
1cafc4eff6
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
|
||||
#
|
||||
# Test if we are using GNU sed
|
||||
# Test if we are using GNU df
|
||||
#
|
||||
|
||||
set -l is_gnu
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user