diff --git a/builtin_set.cpp b/builtin_set.cpp
index 598d6c402..9efd12bc6 100644
--- a/builtin_set.cpp
+++ b/builtin_set.cpp
@@ -519,7 +519,7 @@ static int builtin_set(parser_t &parser, wchar_t **argv)
}
- /* We can't both list and erase varaibles */
+ /* We can't both list and erase variables */
if (erase && list)
{
append_format(stderr_buffer,
diff --git a/doc_src/set.txt b/doc_src/set.txt
index a78d30468..f72d90187 100644
--- a/doc_src/set.txt
+++ b/doc_src/set.txt
@@ -27,13 +27,13 @@ The following options control variable scope:
- -l
or --local
forces the specified shell variable to be given a scope that is local to the current block, even if a variable with the given name exists and is non-local
- -g
or --global
causes the specified shell variable to be given a global scope. Non-global variables disappear when the block they belong to ends
- -U
or --universal
causes the specified shell variable to be given a universal scope. If this option is supplied, the variable will be shared between all the current users fish instances on the current computer, and will be preserved across restarts of the shell.
-- -n
or --names
List only the names of all defined variables, not their value
- -x
or --export
causes the specified shell variable to be exported to child processes (making it an "environment variable")
- -u
or --unexport
causes the specified shell variable to NOT be exported to child processes
The following options are available:
- -e
or --erase
causes the specified shell variable to be erased
- -q
or --query
test if the specified variable names are defined. Does not output anything, but the builtins exit status is the number of variables specified that were not defined.
+- -n
or --names
List only the names of all defined variables, not their value
- -L
or --long
do not abbreviate long values when printing set variables
If a variable is set to more than one value, the variable will be an