On Thu, 1 Feb 2024 09:12:45 +0000, Dave Howorth <dave@howorth.org.uk> wrote:
On Thu, 1 Feb 2024 00:53:24 -0600 -pj via openSUSE Users <users@lists.opensuse.org> wrote:
On 02-01-2024 12:31AM, David T-G wrote:
Carlos & PJ, et al -- [...]
Why is this still a question??!? Does nobody else, really, see that PJ is using the wrong arg flag (something like an underscore but it's an extended char that I don't know what it is)? davidtg@jpo:~> date | susepaste _t "with underscore" openSUSE Paste script
usage: susepaste [-f format] [-n nick] [-t title] [-e expire] [-s schema] [file] davidtg@jpo:~> date | susepaste -t "with hyphen" Paste failed :-(
Ignore the "failed" error for the moment; it doesn't matter. The important thing is that the script doesn't barf on the illegal character. Note that it takes a hyphen to indicate an argument. I don't know what kind of man page y'all are reading, but mine shows a minus sign.
I'm surprised nobody has confirmed what David is saying. He's right. For whatever reason it seems pj isn't using a normal hyphen character to introduce some of the arguments. Fix that and the commands should work.
For purposes of discussion, we need to have common terminology. The character used to introduce command-line options is what Wikipedia calls "Hyphen-minus". [1] Other characters that look like it are the Hyphen, Non-breaking hyphen, Minus sign, En dash, and Em dash. If PJ is using something that isn't the proper hyphen-minus character, then maybe it is because he copy-pasted it right from the f'ed-up susepaste man page. Some of you will see that none of the "hyphen-whatevers" shown for the option descriptions and the examples in the man page are the actual hyphen-minus. Others won't. It depends on your locale settings. What do you think of this?: $ man susepaste |col -bx |grep -o -e '-' |wc -l 1 Yes, there is just one hyphen-minus in the whole man page. It is in the title line. For me: $ locale LANG=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE=C LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL= [1] https://en.wikipedia.org/wiki/Hyphen-minus -- Robert Webb