Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Can I use puts command to print out exact string "-nonewline" ?

28 views
Skip to first unread message

Toby Liu

unread,
Jul 22, 2021, 5:24:43 AM7/22/21
to
I want to use puts to print some strings, but when the string begin with "-" it case some problem.

Christian Gollwitzer

unread,
Jul 22, 2021, 5:34:22 AM7/22/21
to
Am 22.07.21 um 11:24 schrieb Toby Liu:
> I want to use puts to print some strings, but when the string begin with "-" it case some problem.

I don't see a problem:


(optionbutton) 49 % puts stdout -nonewline
-nonewline
(optionbutton) 50 % puts -nonewline
-nonewline
(optionbutton) 51 %


Christian
0 new messages