Skip to content

Commit 62ac01f

Browse files
committed
fix typo: seperator -> seperator
1 parent 9a727ba commit 62ac01f

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

docs/java.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ Find control:
449449
450450
Output control:
451451
-a, --absolute-path always print absolute path of jar file
452-
-s, --seperator specify the seperator between jar file and zip entry.
452+
-s, --separator specify the separator between jar file and zip entry.
453453
default is `!'.
454454
455455
Miscellaneous:

find-in-jars

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ Find control:
9898
9999
Output control:
100100
-a, --absolute-path always print absolute path of jar file
101-
-s, --seperator specify the seperator between jar file and zip entry.
101+
-s, --separator specify the separator between jar file and zip entry.
102102
default is \`!'.
103103
104104
Miscellaneous:
@@ -124,8 +124,9 @@ while (( $# > 0 )); do
124124
extension=("${extension[@]}" "$2")
125125
shift 2
126126
;;
127-
-s|--seperator)
128-
seperator="$2"
127+
# support the typo option --seperator for compatibility
128+
-s|--separator|--seperator)
129+
separator="$2"
129130
shift 2
130131
;;
131132
-E|--extended-regexp)
@@ -175,7 +176,7 @@ extension=${extension:-jar}
175176
regex_mode=${regex_mode:--E}
176177

177178
use_absolute_path=${use_absolute_path:-false}
178-
seperator="${seperator:-!}"
179+
separator="${separator:-!}"
179180

180181
(( "${#args[@]}" == 0 )) && usage 1 "No find file pattern!"
181182
(( "${#args[@]}" > 1 )) && usage 1 "More than 1 file pattern: ${args[@]}"
@@ -243,8 +244,8 @@ findInJarFiles() {
243244
clearResponsiveMessage
244245

245246
$is_console &&
246-
echo "$ec[1;35m${jar_file}${eend}${ec}[1;32m${seperator}${eend}${file}" ||
247-
echo "${jar_file}${seperator}${file}"
247+
echo "$ec[1;35m${jar_file}${eend}${ec}[1;32m${separator}${eend}${file}" ||
248+
echo "${jar_file}${separator}${file}"
248249
done
249250

250251
clearResponsiveMessage

show-busy-java-threads

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -417,17 +417,17 @@ printStackOfThreads() {
417417

418418
if [ -n "$mix_native_frames" ]; then
419419
local sed_script="/--------------- $threadId ---------------/,/^---------------/ {
420-
/--------------- $threadId ---------------/b # skip first seperator line
421-
/^---------------/d # delete second seperator line
420+
/--------------- $threadId ---------------/b # skip first separator line
421+
/^---------------/d # delete second separator line
422422
p
423423
}"
424424
elif [ -n "$force" ]; then
425425
local sed_script="/^Thread ${threadId}:/,/^$/ {
426-
/^$/d; p # delete end seperator line
426+
/^$/d; p # delete end separator line
427427
}"
428428
else
429429
local sed_script="/ nid=${threadId0x} /,/^$/ {
430-
/^$/d; p # delete end seperator line
430+
/^$/d; p # delete end separator line
431431
}"
432432
fi
433433
{

0 commit comments

Comments
 (0)