- https://tebibyte.media/~emma
-
fae/faer
- Joined on
2022-02-27
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…
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…
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…
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…
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…
spaces(1)
– convert whitespace into spaces
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…
flip(1)
– reverse data
That seems equivalent functionally to what I figured.
It is, isn’t it! Sounds good to me.
flip(1)
– reverse data
My though was that -w
is for words and -d
was for arbitary delimiters, defaulting to newlines.
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…
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),…
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.
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…