worldofpeace changed the topic of #nixos-dev to: NixOS Development (#nixos for questions) | NixOS 20.09 Nightingale ✨ https://discourse.nixos.org/t/nixos-20-09-release/9668 | https://hydra.nixos.org/jobset/nixos/trunk-combined https://channels.nix.gsc.io/graph.html | https://r13y.com | 20.09 RMs: worldofpeace, jonringer | https://logs.nix.samueldr.com/nixos-dev
<samueldr> using (( )) is the only way to make sense of numbers in bash
<samueldr> [[ 1 < 2 ]] # works on the strings being ordered lexicographically
orivej has quit [Ping timeout: 256 seconds]
<abathur> wrt to [ and [[ in bash, I agree generally, but I've been trying (and roughly succeeding) to avoid them in create-darwin-volume.sh for now because the PR also converts shebang to /usr/bin/env from /bin/sh
<abathur> I did change one for now, because lilyball caught a bug in a string-match I was trying to shoehorn into [ idioms
<abathur> but otherwise I want to avoid making a bunch of work converting them all back if someone shows up at the wedding with a reason it must be sh
<abathur> similar with performance
<supersandro2000> samueldr: just using (()) without anything else does not really
<samueldr> I don't know what you
<samueldr> what you're looking at
<abathur> I made some changes here with an eye toward clawing back a little performance, but usually just because I was already touching it or shellcheck griped; generally prefer a later pass for those
<samueldr> and yeah, abathur, totally agree if you use /bin/sh preferring `test` is probably better
<samueldr> though when I do I write `test` instead of `[
<samueldr> supersandro2000: that's the only way to do maths
<supersandro2000> a=1 is not math
<samueldr> it telegraphs it's going to be used as a number
<samueldr> which we see later
<samueldr> ((_remind_num++))
<supersandro2000> hmmm
<abathur> I prefer test myself (though I guess it's more likely to get broken if some comedian writes a test() function :)
<supersandro2000> but who wants to use sh with [? It does really weird things
<samueldr> abathur: remove all comedy :)
<supersandro2000> [[ is just nicer to use with less " and no = comparison
<samueldr> posixly speaking, [[ doesn't exist IIRC
<abathur> nod
<samueldr> using /bin/sh with non-posix constructs is... not great
<samueldr> though I don't know about (()) and POSIX
<abathur> it hopefully won't be /bin/sh beyond this PR
<samueldr> it does seem to imply (()) exists
<supersandro2000> yeah
<supersandro2000> so [[ can be used
<supersandro2000> I don't know why you want to use sh over bash
<abathur> I'm not sure why /bin/sh was used initially, maybe just inertia since it was originally run from the main install script, which is also /bin/sh
<abathur> I'm mostly changing it because of a chain of other things; I'm changing it because I'm shifting its primary use case from being invoked from the main install script to being sourced from the multi-user installer (which is /usr/bin/env bash)
<abathur> I'm shifting its primary use case because people agree the macOS install is getting too complex to call single-user
<abathur> and if it doesn't have to support single-user installs, a quick way to improve its quality is to take advantage of the existing UX idioms in install-multi-user.sh
<abathur> oh, I guess sandro's talking about install-multi-user.sh anyways; I'm being a bit thick since I've been focused on that and asked about it earlier
rajivr has joined #nixos-dev
ris has quit [Ping timeout: 240 seconds]
<abathur> tangentially, if it doesn't exist, there might be a neat tool opportunity (particularly tractable w/ nix) for something that evaluates statements in multiple shells for comparison
tilpner_ has joined #nixos-dev
tilpner has quit [Ping timeout: 240 seconds]
tilpner_ is now known as tilpner
<supersandro2000> you can change the shell in the beginning and shellcheck should complain about some common errors in that shell
m1cr0man has quit [Ping timeout: 272 seconds]
cole-h has joined #nixos-dev
m1cr0man has joined #nixos-dev
supersandro2000 has quit [Quit: The Lounge - https://thelounge.chat]
supersandro2000 has joined #nixos-dev
kalbasit has joined #nixos-dev
teto has quit [Ping timeout: 272 seconds]
alp has quit [Ping timeout: 272 seconds]
zarel_ has quit [Ping timeout: 256 seconds]
kalbasit has quit [Ping timeout: 272 seconds]
m1cr0man has quit [Ping timeout: 240 seconds]
zarel has joined #nixos-dev
srk has quit [Remote host closed the connection]
srk has joined #nixos-dev
kalbasit has joined #nixos-dev
LnL has quit [Ping timeout: 256 seconds]
LnL has joined #nixos-dev
cole-h has quit [Ping timeout: 256 seconds]
kalbasit has quit [Ping timeout: 272 seconds]
clever_ has joined #nixos-dev
clever has quit [Ping timeout: 256 seconds]
orivej has joined #nixos-dev
teto has joined #nixos-dev
alp has joined #nixos-dev
alp has quit [Quit: Leaving]
alp has joined #nixos-dev
alp has quit [Client Quit]
alp- has joined #nixos-dev
alp- is now known as alp
alp has quit [Read error: Connection reset by peer]
alp has joined #nixos-dev
maralorn has quit [Ping timeout: 240 seconds]
Irenes[m] has quit [Ping timeout: 246 seconds]
treed[m] has quit [Ping timeout: 246 seconds]
jdnixx-M1 has quit [Ping timeout: 244 seconds]
zowoq[m] has quit [Ping timeout: 240 seconds]
bbigras has quit [Ping timeout: 240 seconds]
bennofs[m] has quit [Ping timeout: 240 seconds]
kraem has quit [Ping timeout: 240 seconds]
michaelpj has quit [Ping timeout: 246 seconds]
aanderse has quit [Ping timeout: 246 seconds]
ryantm has quit [Ping timeout: 246 seconds]
arcnmx has quit [Ping timeout: 246 seconds]
rycee has quit [Ping timeout: 260 seconds]
thefloweringash has quit [Ping timeout: 260 seconds]
ma27[m] has quit [Ping timeout: 268 seconds]
bk1603[m] has quit [Ping timeout: 240 seconds]
siraben has quit [Ping timeout: 240 seconds]
timokau[m] has quit [Ping timeout: 244 seconds]
jtojnar has quit [Ping timeout: 244 seconds]
colemickens has quit [Ping timeout: 244 seconds]
Ox4A6F has quit [Ping timeout: 244 seconds]
puzzlewolf has quit [Ping timeout: 244 seconds]
emily has quit [Ping timeout: 244 seconds]
Valodim[m] has quit [Ping timeout: 246 seconds]
jonge[m] has quit [Ping timeout: 246 seconds]
domenkozar[m] has quit [Ping timeout: 246 seconds]
matthewkenigsber has quit [Ping timeout: 246 seconds]
aterius has quit [Ping timeout: 268 seconds]
roberth has quit [Ping timeout: 268 seconds]
worldofpeace has quit [Ping timeout: 246 seconds]
nh2[m] has quit [Ping timeout: 244 seconds]
danielrf[m] has quit [Ping timeout: 244 seconds]
Dandellion has quit [Ping timeout: 240 seconds]
ky0ko1 has quit [Ping timeout: 246 seconds]
symphorien[m] has quit [Ping timeout: 260 seconds]
rnhmjoj has quit [Ping timeout: 268 seconds]
regnat has quit [Ping timeout: 244 seconds]
Ericson2314 has quit [Ping timeout: 246 seconds]
DamienCassou has quit [Ping timeout: 244 seconds]
philipp[m] has quit [Ping timeout: 244 seconds]
evils has quit [Quit: Lost terminal]
evils has joined #nixos-dev
mkaito has joined #nixos-dev
mkaito has joined #nixos-dev
mkaito has quit [Changing host]
treed[m] has joined #nixos-dev
Irenes[m] has joined #nixos-dev
michaelpj has joined #nixos-dev
aanderse has joined #nixos-dev
maralorn has joined #nixos-dev
Dandellion has joined #nixos-dev
zowoq[m] has joined #nixos-dev
bbigras has joined #nixos-dev
ryantm has joined #nixos-dev
jdnixx-M1 has joined #nixos-dev
Ericson2314 has joined #nixos-dev
nh2[m] has joined #nixos-dev
ky0ko1 has joined #nixos-dev
bennofs[m] has joined #nixos-dev
domenkozar[m] has joined #nixos-dev
<ehmry> we should probably patch shell check to complain if the shell isn't /usr/bin/env :p
matthewkenigsber has joined #nixos-dev
kraem has joined #nixos-dev
arcnmx has joined #nixos-dev
jonge[m] has joined #nixos-dev
jtojnar has joined #nixos-dev
worldofpeace has joined #nixos-dev
siraben has joined #nixos-dev
Valodim[m] has joined #nixos-dev
rnhmjoj has joined #nixos-dev
emily has joined #nixos-dev
Ox4A6F has joined #nixos-dev
timokau[m] has joined #nixos-dev
bk1603[m] has joined #nixos-dev
ma27[m] has joined #nixos-dev
colemickens has joined #nixos-dev
aterius has joined #nixos-dev
puzzlewolf has joined #nixos-dev
thefloweringash has joined #nixos-dev
jpo has quit [Ping timeout: 256 seconds]
roberth has joined #nixos-dev
symphorien[m] has joined #nixos-dev
DamienCassou has joined #nixos-dev
regnat has joined #nixos-dev
rycee has joined #nixos-dev
__monty__ has joined #nixos-dev
philipp[m] has joined #nixos-dev
danielrf[m] has joined #nixos-dev
clever_ has quit [Changing host]
clever_ has joined #nixos-dev
clever_ is now known as clever
ris has joined #nixos-dev
orivej has quit [Ping timeout: 264 seconds]
jpo has joined #nixos-dev
m1cr0man has joined #nixos-dev
m1cr0man has quit [Ping timeout: 240 seconds]
srk has quit [Remote host closed the connection]
srk has joined #nixos-dev
m1cr0man has joined #nixos-dev
orivej has joined #nixos-dev
m1cr0man has quit [Ping timeout: 264 seconds]
tilpner has quit [Quit: tilpner]
tilpner has joined #nixos-dev
m1cr0man has joined #nixos-dev
m1cr0man has quit [Ping timeout: 246 seconds]
<Ericson2314> ehmry: :) I think they could take a patch for that
<Ericson2314> if it was a flag
m1cr0man has joined #nixos-dev
m1cr0man has quit [Ping timeout: 272 seconds]
m1cr0man has joined #nixos-dev
m1cr0man has quit [Read error: Connection reset by peer]
m1cr0man has joined #nixos-dev
m1cr0man has quit [Quit: G'luck]
m1cr0man has joined #nixos-dev
m1cr0m4n has joined #nixos-dev
m1cr0man has quit [Ping timeout: 272 seconds]
kalbasit has joined #nixos-dev
m1cr0m4n has quit [Ping timeout: 240 seconds]
m1cr0man has joined #nixos-dev
m1cr0man has quit [Read error: Connection reset by peer]
m1cr0man has joined #nixos-dev
rajivr has quit [Quit: Connection closed for inactivity]
evanjs has quit [Quit: ZNC 1.8.2 - https://znc.in]
evanjs has joined #nixos-dev
m1cr0m4n has joined #nixos-dev
m1cr0man has quit [Ping timeout: 256 seconds]
Cale has quit [Remote host closed the connection]
kalbasit has quit [Ping timeout: 240 seconds]
bgamari has joined #nixos-dev
bgamari_ has quit [Ping timeout: 264 seconds]
lejonet has quit [Ping timeout: 256 seconds]
tilpner has quit [Remote host closed the connection]
tilpner has joined #nixos-dev
MichaelRaskin has quit [Quit: MichaelRaskin]
__monty__ has quit [Quit: leaving]
supersandro2000 has quit [Ping timeout: 246 seconds]
supersandro2000 has joined #nixos-dev