]> git.ipfire.org Git - thirdparty/util-linux.git/commit
Escape ((…)) in AsciiDoc to fix broken example
authorPaul Sarena <paul@sarena.ca>
Fri, 26 Nov 2021 23:34:02 +0000 (15:34 -0800)
committerGitHub <noreply@github.com>
Fri, 26 Nov 2021 23:34:02 +0000 (15:34 -0800)
commit3819419ed9694ad083cfc7105dafc2a88c2f726b
treeceb6deee6ef83a5fd26a26c8d00fe7137905ccd5
parent57d9fd2bea629f211bdd30a12cacc759c0b4f93b
Escape ((…)) in AsciiDoc to fix broken example

In AsciiDoc, double parentheses are used to mark flow index terms, but in this document, their use is intended to be interpreted by the shell's arithmetic expansion.  By escaping them with a backslash in the AsciiDoc, they pass through as-is to the manpage and other targets.

So, instead of a rendered result of `dd if=~/wipefs-sdb-0x00000438.bak of=/dev/sdb seek=$0x00000438 bs=1 conv=notrunc`, we get `dd if=~/wipefs-sdb-0x00000438.bak of=/dev/sdb seek=$((0x00000438)) bs=1 conv=notrunc`.

Seperately, when interpreted by a shell's arithmetic expansion, the 0x00000438 hex is converted to decimal 1080 `dd if=~/wipefs-sdb-0x00000438.bak of=/dev/sdb seek=1080 bs=1 conv=notrunc`
misc-utils/wipefs.8.adoc