- https://tebibyte.media/~emma
-
fae/faer
- Joined on
2022-02-27
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…
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…
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…
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),…