From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by sourceware.org (Postfix) with ESMTPS id 475233857C4F for ; Mon, 19 Oct 2020 17:40:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 475233857C4F Received: by mail-wm1-x342.google.com with SMTP id b127so350791wmb.3 for ; Mon, 19 Oct 2020 10:40:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=aCPyec/RkNv0cYoFuRd/oYbc8R+XWTF5Ds+EA4qULig=; b=qdLxuW0iPY4ywKtnXoWA/9dkBe3BwutTaYfiVhD7BxKmquN8bCUFpTGedgExN0igUE TABH8cCnZoiqxfg5zXprdWT+L+RE/q8IAUiL4GTCk1ZmSBEhY6Hmp2uQTI6tTJCMUNLN y+KYpdy/IvTs5UyCrSdr4BtR6oTkl04D/qA54a+10BuUYO0k98uDRzrW2n0lZykPCgjz dtLxhVsgQfrAXz6enUbEZ9KqbHuq6Tsk5WYHqSNbZkVeZy/OoHspQASbuxqfZilHJSm2 v/CH+eYx+fmTFYj/pFDQkb0NCmqlmn5MmqJzxiuxYtG3ANFVWlWfK5KheUv+ubTOVocP EeEw== X-Gm-Message-State: AOAM53016KZjrjy16qisB1VVeJnxHpTenJJAiMtRU8D1RnONeMzFKvk1 Hldi1E3VcBaw7jGGSgyaZzI18s60riI= X-Google-Smtp-Source: ABdhPJwJfbo59qqR2epwadZHMuqZ1Z8fw9KpWtP9Q+uqUzijsP9bLMPasowUA5OeBu/ElV1LPqhF4Q== X-Received: by 2002:a1c:740e:: with SMTP id p14mr403792wmc.34.1603129211965; Mon, 19 Oct 2020 10:40:11 -0700 (PDT) Received: from [192.168.1.143] ([170.253.60.68]) by smtp.gmail.com with ESMTPSA id a15sm502162wrp.90.2020.10.19.10.40.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 19 Oct 2020 10:40:11 -0700 (PDT) Subject: \- vs - (Was [Re: [PATCH 2/3] system_data_types.7: Add 'clock_t']) To: "Michael Kerrisk (man-pages)" Cc: linux-man@vger.kernel.org, libc-alpha@sourceware.org References: <20201017213758.9270-1-colomar.6.4.3@gmail.com> <20201017213758.9270-2-colomar.6.4.3@gmail.com> From: Alejandro Colomar Message-ID: <706d3eea-60f8-c208-0cd4-3412ebfef263@gmail.com> Date: Mon, 19 Oct 2020 19:40:09 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Oct 2020 17:40:16 -0000 On 2020-10-18 07:56, Michael Kerrisk (man-pages) wrote: > Hi Alex, > > On 10/17/20 11:37 PM, Alejandro Colomar wrote: >> Signed-off-by: Alejandro Colomar >> --- >> >> Hi Michael, >> >> Does that dash (in "real-floating") need to be escaped? > > No. > >> In my terminal I see it correctly, >> but I've seen you escaping some of them and don't know the reason why. > > See man-pages(7): > > Real minus character > Where a real minus character is required (e.g., for numbers such > as -1, for man page cross references such as utf-8(7), or when > writing options that have a leading dash, such as in ls -l), use > the following form in the man page source: > > \- > > This guideline applies also to code examples. > > The point is that a real-minux sign is needed to that code snippets > can be cut and pasted. > >> Should they be escaped always, or is it only sometimes, and when? > > In normal text, no escape is needed. Hi Michael, Then, in the following code (taken from printf.3) the escape is wrong (unneeded) by those guidelines?: [[ .SH NAME printf, fprintf, dprintf, sprintf, snprintf, vprintf, vfprintf, vdprintf, vsprintf, vsnprintf \- formatted output conversion ]] Thanks, Alex