Bug 269214 - loader.efi(8) online: a space in an example command is misrepresented as a tab
Summary: loader.efi(8) online: a space in an example command is misrepresented as a tab
Status: Open
Alias: None
Product: Documentation
Classification: Unclassified
Component: Manual Pages (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: needs-qa
Depends on:
Blocks:
 
Reported: 2023-01-29 02:51 UTC by Graham Perrin
Modified: 2023-01-29 13:27 UTC (History)
2 users (show)

See Also:


Attachments
Screenshot: tab character copied from the web page, pasted to Notepad and Notepad++ (186.81 KB, image/png)
2023-01-29 13:27 UTC, Graham Perrin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Graham Perrin freebsd_committer freebsd_triage 2023-01-29 02:51:06 UTC
Under <https://man.freebsd.org/cgi/man.cgi?query=loader.efi&sektion=8&manpath=FreeBSD+13.1-STABLE#EXAMPLES> and <https://man.freebsd.org/cgi/man.cgi?query=loader.efi&sektion=8&manpath=FreeBSD+14.0-CURRENT#EXAMPLES>: 

	   # cp	/boot/loader.efi /boot/efi/efi/freebsd/loader.efi


The result of the example: 

root@mowa219-gjp4-8570p-freebsd:~ # cp
cp             cpanel_json_xs cpp12          cpufetch       
cpack          cpio           cpp2html       cpuid_tool     
cpaldjvu       cpp            cpu-x          cpupdate       
cpan           cpp10          cpucontrol     cpuset         
root@mowa219-gjp4-8570p-freebsd:~ # cp/boot/loader.efi /boot/efi/efi/freebsd/loader.efi


----

Without the offending tab: 

	   # cp /boot/loader.efi /boot/efi/efi/freebsd/loader.efi
Comment 1 Gordon Bergling freebsd_committer freebsd_triage 2023-01-29 06:24:20 UTC
I can't reproduce this, it is working out of the box, when coping it from the web page to the terminal and when selecting the man page output from within the terminal.

What kind of terminal do you use?
Comment 2 Graham Perrin freebsd_committer freebsd_triage 2023-01-29 13:08:09 UTC
Initially, I copied from Firefox. 

The same problem (a tab character) is found with both pages when copying from Falkon. 

The tab is visible when pasting to e.g. Code - OSS. 

(In reply to Gordon Bergling from comment #1)

Konsole, csh. 

With sh, the effect is different: 

root@mowa219-gjp4-8570p-freebsd:~ # mount | grep boot
/dev/ada0p1 on /boot/efi (msdosfs, local)
root@mowa219-gjp4-8570p-freebsd:~ # sh
# cp/boot/loader.efi /boot/efi/efi/freebsd/loader.efi
sh: cp/boot/loader.efi: not found
#
Comment 3 Graham Perrin freebsd_committer freebsd_triage 2023-01-29 13:27:40 UTC
Created attachment 239782 [details]
Screenshot: tab character copied from the web page, pasted to Notepad and Notepad++

(In reply to Gordon Bergling from comment #1)

Reproducible at a different computer, running Windows 10.