bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: The way to suppress a trailing new line


From: Henrik Moller
Subject: Re: The way to suppress a trailing new line
Date: Fri, 1 Nov 2024 10:36:08 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0


Try using quote-quad instead of quad:

     ∇tryit[⎕]∇
   ∇
[0]   tryit
[1]    
[2]   ⍞←'one'
[3]   ⍞←'two'
   ∇

                tryit
onetwo



On 11/1/24 02:27, Koki Fushimi wrote:
Hi. Is there a way to suppress a trailing new line in the output?

```sh
apl --silent --noCIN --noCONT --OFF --noSV -f main.apl
```

```apl:main.apl
⎕←'Hello!'
```

```txt:output
Hello!

```

For example, Dyalog doesn’t add an extra new line:

```sh
dyalogscript main.apl
```

```txt:output
Hello!
```

Koki Fushimi



reply via email to

[Prev in Thread] Current Thread [Next in Thread]