Emma Tebibyte emma
emma commented on issue bonsai/harakit#8 2024-02-13 15:52:24 -07:00
qi(1): The qi shell

Actually on second thought I just realized that this is kind of pointless. I can’t think of any scenario where preserving the 'a' would make sense, considering if you run c then it is…

emma commented on issue bonsai/harakit#8 2024-02-13 15:49:38 -07:00
qi(1): The qi shell

A question to ask is if I do this:

; let a b
; let c 'a'
; c

should this:

; c
/bin/qi: a: Not found.

or this:

; b
/bin/qi: b: Not found.

occur?

I like…

emma commented on issue bonsai/harakit#8 2024-02-13 15:45:47 -07:00
qi(1): The qi shell
; let string str
; string
Usage: str [type] [string...]

why not update argv0? just curious, i don't have any strong opinions on the matter

Because…

emma commented on issue bonsai/harakit#8 2024-02-13 14:25:45 -07:00
qi(1): The qi shell

This extends from the syntax I was considering yesterday:

; let a b
; a
/bin/qi: b: Not found.
; let b 'a'
; 'b'
/bin/qi: b: Not found.
; let y { rpn 2 1 - }
; out y
1
; let a b c…
emma commented on issue bonsai/harakit#8 2024-02-11 14:04:38 -07:00
qi(1): The qi shell

We could default to variables being immutable like Rust but I don't know how useful this is and it seems like it would cause more problems than it would solve.

I don’t see much point to…

emma opened issue bonsai/harakit#56 2024-02-11 12:56:57 -07:00
spaces(1) – convert whitespace into spaces
emma commented on issue bonsai/harakit#55 2024-02-11 12:43:26 -07:00
mix(1) – randomly sort inputs

And -o is redundant with redirection.

emma commented on issue bonsai/harakit#55 2024-02-11 12:42:50 -07:00
mix(1) – randomly sort inputs

From shuf(1):

DESCRIPTION
       Write a random permutation of the input lines to standard output.

       With no FILE, or when FILE is -, read standard input.

       Mandatory…
emma opened issue bonsai/harakit#55 2024-02-11 12:38:29 -07:00
GNU shuf(1) analogue
emma commented on issue bonsai/harakit#48 2024-02-11 12:38:06 -07:00
flip(1) – reverse data

Now we just need a better name.

emma commented on issue bonsai/harakit#48 2024-02-11 12:36:15 -07:00
flip(1) – reverse data

That seems equivalent functionally to what I figured.

It is, isn’t it! Sounds good to me.

emma opened issue bonsai/harakit#54 2024-02-10 20:52:05 -07:00
fop(1): handle unwrap()s
emma commented on issue bonsai/harakit#48 2024-02-10 16:55:33 -07:00
flip(1) – reverse data

My though was that -w is for words and -d was for arbitary delimiters, defaulting to newlines.

emma commented on issue bonsai/harakit#53 2024-02-10 16:54:18 -07:00
si(1) – SI unit converter

our units(1) analogue would be minimal in its implementation. I’d like to just support SI prefixes and binary prefixes as they are widely applied across the world and mutually intelligible. If…

emma commented on issue bonsai/harakit#8 2024-02-10 16:52:46 -07:00
qi(1): The qi shell

The way POSIX shell does variable assignment is awful.

#!/bin/env -i /bin/sh
# ^^ don't inherit an existing environment

echo "$x" # unassigned (vars are "" by default),…
emma commented on issue bonsai/harakit#44 2024-02-08 22:15:54 -07:00
scroll(1) – pager

What do you think of scroll(1) as a name?

emma commented on pull request bonsai/harakit#50 2024-02-08 22:14:44 -07:00
Add hru(1)

I’ve neither requested your review nor moved this out of WIP. That means this is not yet nearing completion. Here you will find your answer.

emma commented on issue bonsai/harakit#33 2024-02-08 21:48:29 -07:00
hru(1) – human-readable units

I'd like an option to set the maximum unit to use. Maybe the minimum too.

I feel like that’s outside the scope of this program. It’s not a general-purpose unit converter but a human-readab…

emma opened issue bonsai/harakit#53 2024-02-08 21:47:09 -07:00
GNU units analogue
emma created pull request bonsai/harakit#52 2024-02-07 22:04:21 -07:00
CONTRIBUTING: updated information