Emma Tebibyte emma
emma created branch rpn-fix-exp in bonsai/harakit 2024-02-13 16:58:12 -07:00
emma pushed to rpn-fix-exp at bonsai/harakit 2024-02-13 16:58:12 -07:00
5b364e104e rpn(1): fixed exponentiation
emma commented on issue bonsai/harakit#8 2024-02-13 15:59:04 -07:00
qi(1): The qi shell

I was also thinking that perhaps all quoting should make characters literal so that you have to wrap them in our equivalent to { } to use them. I’m not sure how good of an idea that is but it…

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

I think preserving parameter expansion from POSIX shell is a good idea:

; let a b
; out a
b
; out 'a' "a c"
a b c
; out "drop the aass"
drop the aass
; out "drop…
emma commented on issue bonsai/harakit#8 2024-02-13 15:54:50 -07:00
qi(1): The qi shell

I think preserving parameter expansion from POSIX shell is a good idea:

; let a b
; out a
b
; out 'a' "a c"
a b c
; out "drop the aass"
drop the aass
; out "drop the {a}ass"
drop the…
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),…