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

27 views
Skip to first unread message

Toby Liu

unread,
Jul 22, 2021, 5:24:43 AMJul 22
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 AMJul 22
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
Reply all
Reply to author
Forward
0 new messages