ngn/k
19
63
Fork
You've already forked k
17

repl.k seems to be broken on freebsd #65

Closed
opened 2023年08月10日 20:14:29 +02:00 by bakul · 2 comments

See the example below

$ ./k
5(2*)1円
1 2 4 8 16 32
\\
$ ./k repl.k
ngn/k, (c) 2019-2023 ngn, GNU AGPLv3. type \ for more info
 5(2*)1円
tput: illegal option -- S
usage: tput [-T term] attribute ...
'length
 {(lines;cols)::`I$"\n"\`x(("/usr/bin/tput";"-S");"lines\ncols\n")}
 ^
 {upd[];$[(::)~x;"";(1<#x)&|/`m`M`A=@x;mMA x;(dd[cols]`k@lim[cols]x)..
 ^
 \\
$

This may be because bsd tput conforms to POSIX.1 but doesn't have all the linux extensions such as-S.

See the example below ``` $ ./k 5(2*)1円 1 2 4 8 16 32 \\ $ ./k repl.k ngn/k, (c) 2019-2023 ngn, GNU AGPLv3. type \ for more info 5(2*)1円 tput: illegal option -- S usage: tput [-T term] attribute ... 'length {(lines;cols)::`I$"\n"\`x(("/usr/bin/tput";"-S");"lines\ncols\n")} ^ {upd[];$[(::)~x;"";(1<#x)&|/`m`M`A=@x;mMA x;(dd[cols]`k@lim[cols]x).. ^ \\ $ ``` This may be because bsd `tput` conforms to POSIX.1 but doesn't have all the linux extensions such as`-S`.
Owner
Copy link

this doesnt happen on my freebsd (14.0-RELEASE).
tput appears to support -S:

root@freebsd:~/k # tput
Usage: tput [options] [command]
Options:
 -S << read commands from standard input
 ...

are you using an older version?

this doesnt happen on my freebsd (14.0-RELEASE). `tput` appears to support `-S`: ``` root@freebsd:~/k # tput Usage: tput [options] [command] Options: -S << read commands from standard input ... ``` are you using an older version?
Author
Copy link

This seems to have been fixed in 14.0 release. On 13.2-STABLE:

$ tput
usage: tput [-T term] attribute ...

Can be closed.

This seems to have been fixed in 14.0 release. On 13.2-STABLE: $ tput usage: tput [-T term] attribute ... Can be closed.
Sign in to join this conversation.
No Branch/Tag specified
master
pages
No results found.
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ngn/k#65
Reference in a new issue
ngn/k
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?