From 5f7c18902fe2cd1e8b7d8d205680546d056000f7 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 6 Aug 2012 12:45:08 +0200 Subject: mount: replace control chars in mountpoint name For compatibility with coreutils and to avoid complex solutions in mount output mount replaces control characters with '?'. Note that the listing mode in mount(8) is in maintenance mode -- findmnt(8) provides more robust and better solutions. Signed-off-by: Karel Zak --- sys-utils/mount.8 | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'sys-utils/mount.8') diff --git a/sys-utils/mount.8 b/sys-utils/mount.8 index 6c222d032..fc4622d2b 100644 --- a/sys-utils/mount.8 +++ b/sys-utils/mount.8 @@ -115,13 +115,13 @@ options to avoid ambivalent interpretation of the given argument. For example .B The listing and help. .RS -Three forms of invocation do not actually mount anything: -.TP -.B "mount \-h" -prints a help message -.TP -.B "mount \-V" -prints a version string +The listing mode is maintained for backward compatibility only. + +For more robust and definable output use +.BR findmnt (8), +\fBespecially in your scripts\fP. Note that control characters in the +mountpoint name are replaced with '?'. + .TP .BR "mount " [ -l "] [" "-t \fItype\fP" ] lists all mounted filesystems (of type -- cgit v1.2.3-55-g7522