mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-28 09:31:16 -03:00
Make echo recognize -ne
This commit is contained in:
14
builtin.cpp
14
builtin.cpp
@@ -1595,14 +1595,20 @@ static int builtin_echo(parser_t &parser, wchar_t **argv)
|
||||
{
|
||||
print_newline = false;
|
||||
}
|
||||
else if (! wcscmp(*argv, L"-s"))
|
||||
{
|
||||
print_spaces = false;
|
||||
}
|
||||
else if (! wcscmp(*argv, L"-e"))
|
||||
{
|
||||
interpret_special_chars = true;
|
||||
}
|
||||
else if (! wcscmp(*argv, L"-ne"))
|
||||
{
|
||||
print_newline = false;
|
||||
interpret_special_chars = true;
|
||||
}
|
||||
else if (! wcscmp(*argv, L"-s"))
|
||||
{
|
||||
// fish-specific extension, which we should try to nix
|
||||
print_spaces = false;
|
||||
}
|
||||
else if (! wcscmp(*argv, L"-E"))
|
||||
{
|
||||
interpret_special_chars = false;
|
||||
|
||||
Reference in New Issue
Block a user