forked from Imagelibrary/binutils-gdb
Use filtered output in ordinary commands
Many otherwise ordinary commands choose to use unfiltered output rather than filtered. I don't think there's any reason for this, so this changes many such commands to use filtered output instead. Note that complete_command is not touched due to a comment there explaining why unfiltered output is believed to be used.
This commit is contained in:
@@ -501,14 +501,14 @@ pwd_command (const char *args, int from_tty)
|
||||
safe_strerror (errno));
|
||||
|
||||
if (strcmp (cwd.get (), current_directory) != 0)
|
||||
printf_unfiltered (_("Working directory %ps\n (canonically %ps).\n"),
|
||||
styled_string (file_name_style.style (),
|
||||
current_directory),
|
||||
styled_string (file_name_style.style (), cwd.get ()));
|
||||
printf_filtered (_("Working directory %ps\n (canonically %ps).\n"),
|
||||
styled_string (file_name_style.style (),
|
||||
current_directory),
|
||||
styled_string (file_name_style.style (), cwd.get ()));
|
||||
else
|
||||
printf_unfiltered (_("Working directory %ps.\n"),
|
||||
styled_string (file_name_style.style (),
|
||||
current_directory));
|
||||
printf_filtered (_("Working directory %ps.\n"),
|
||||
styled_string (file_name_style.style (),
|
||||
current_directory));
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user