mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-28 09:31:16 -03:00
builtin set: remove unused argument
The "user" bit is only for getting errors when trying to set read-only variables. It's not relevant for reading from variables.
This commit is contained in:
@@ -708,7 +708,7 @@ fn show(cmd: &wstr, parser: &Parser, streams: &mut IoStreams, args: &[&wstr]) ->
|
||||
let vars = parser.vars();
|
||||
if args.is_empty() {
|
||||
// show all vars
|
||||
let mut names = vars.get_names(EnvMode::USER);
|
||||
let mut names = vars.get_names(EnvMode::empty());
|
||||
names.sort();
|
||||
for name in names {
|
||||
if name == "history" {
|
||||
|
||||
Reference in New Issue
Block a user