Commit Graph

189 Commits

Author SHA1 Message Date
Andreas Nordal
193a26960d Add todolist 2019-08-04 15:27:20 +02:00
Andreas Nordal
ef5c04dba4 Howto: Conditions: Dispel the external command myth 2019-08-04 15:27:20 +02:00
Andreas Nordal
593493bb53 Howto: Rm stray paragraph 2019-08-04 15:27:20 +02:00
Andreas Nordal
37c149e7e2 Howto: Reword the array motivation 2019-08-04 15:27:20 +02:00
Andreas Nordal
8ff688f8d4 Changelog: Let's mention code polishing too 2019-08-04 15:27:20 +02:00
Andreas Nordal
abffe5fadc Implement more special variables: $$ $! $- 2019-08-04 15:27:20 +02:00
Andreas Nordal
64d3ee7b1e Unittest some more 2019-08-03 20:52:09 +02:00
Andreas Nordal
7bc9a9cd73 commonstrcmd: Reduce scope of error case 2019-08-03 20:52:09 +02:00
Andreas Nordal
88631be68d commonstrcmd: Don't flush $ behind phantomstring's back
…causing phantomstring to retry with horizon_lengthenable=false.
2019-08-03 20:52:09 +02:00
Andreas Nordal
e8be3d2546 phantomstring: Use locally verifiable strategy for unittestability 2019-08-03 20:52:09 +02:00
Andreas Nordal
ff3d22e397 changelog: SitCase 2019-08-03 20:52:09 +02:00
Andreas Nordal
a6a7cdc713 SitCase: Amend 3aaf 2019-07-29 22:17:16 +02:00
Andreas Nordal
d71f64e3d6 [clippy 15/15] Reject inappropriate advice
I'm checking if the RGB bits are zero, not counting trailing zero bits.
It is totally irrelevant that those bits are at the end.
2019-07-28 22:01:33 +02:00
Andreas Nordal
6cbeda78a8 [clippy 14/15] Embrace inclusive ranges (Rustc 1.26) 2019-07-28 22:01:33 +02:00
Andreas Nordal
0b1c3cc501 [clippy 13/15] Same-name field designation is implicit 2019-07-28 22:01:33 +02:00
Andreas Nordal
e3f3a6678e [clippy 12/15] Name the predicate 2019-07-28 22:01:33 +02:00
Andreas Nordal
9be209faa2 [clippy 11/15] Main loop can be a for loop 2019-07-28 22:01:33 +02:00
Andreas Nordal
007b09742c [clippy 10/15] is_some, is_err NIH 2019-07-28 22:01:33 +02:00
Andreas Nordal
6fc711eef8 [clippy 9/15] as u16 → u16::from 2019-07-28 22:01:33 +02:00
Andreas Nordal
31ecf3a9f8 [clippy 8/15] len == 0 → is_empty 2019-07-28 22:01:33 +02:00
Andreas Nordal
9f73104349 [clippy 7/15] Collapse ifs 2019-07-28 22:01:25 +02:00
Andreas Nordal
3c0c169772 [clippy 6/15] Collapse single match → if 2019-07-28 22:01:25 +02:00
Andreas Nordal
c5eff247a9 [clippy 5/15] Some returns do not have to be explicit 2019-07-28 22:01:25 +02:00
Andreas Nordal
ece0565198 [clippy 4/15] Separators in numeric literals FTW
Make the RGB part of color codes stand out.
2019-07-28 22:01:25 +02:00
Andreas Nordal
f06cd04041 [clippy 3/15] Iteration by index is avoidable 2019-07-28 22:01:16 +02:00
Andreas Nordal
cc197a43de [clippy 2/15] Unnecessary closure wrappers in callbacks are avoidable 2019-07-28 21:52:28 +02:00
Andreas Nordal
c83620d0ab [clippy 1/15] Match by ref is avoidable 2019-07-28 21:19:26 +02:00
Andreas Nordal
afa267af72 SitCase: Fix horizon lengthening bugs [2/2] 2019-07-28 18:28:15 +02:00
Andreas Nordal
3aaf357018 SitCase: Fix horizon lengthening bugs [1/2] 2019-07-28 18:28:15 +02:00
Andreas Nordal
c696121020 SitCase: Add unittest to highlight hard-to-repro horizon lengthening bugs 2019-07-28 18:25:59 +02:00
Andreas Nordal
f057440714 Howto: Echo substitute: Better name and reason 2019-07-28 18:22:41 +02:00
Andreas Nordal
c1e97f8d38 Howto: Why bash: Less bombastic 2019-07-07 23:29:31 +02:00
Andreas Nordal
1504d11ba6 State machine: Get rid of yet another unreachable panic 2019-06-29 11:56:48 +02:00
Andreas Nordal
aab3d42e01 Add changelog 2019-06-10 13:46:14 +02:00
Andreas Nordal
e43a50bd9d Parse premature esac. Fixes parse error on rustup.sh 2019-06-09 13:37:09 +02:00
Andreas Nordal
9a9c59525e Howto: Reinstate something like a preface 2019-06-04 01:41:45 +02:00
Andreas Nordal
5f425ee47a Howto: Echo: Reason first 2019-06-03 23:22:20 +02:00
Andreas Nordal
5fd5d82ffe (fix #26) Howto: Replace echo → printf where it matters 2019-06-03 23:22:20 +02:00
Andreas Nordal
3153d68362 howto: Dependencies 2019-05-02 21:41:30 +00:00
Andreas Nordal
623dbec408 How to: check if a variable exists 2019-03-28 22:59:32 +01:00
Andreas Nordal
4aa879bf4a howto: Commands with better alternatives 2019-02-26 22:02:02 +00:00
Andreas Nordal
1652f09014 howto: Big wording improvement 2019-02-26 22:02:02 +00:00
Andreas Nordal
55fc9ed370 how to: Expand the array example with a loop 2019-02-21 23:33:15 +00:00
Andreas Nordal
9831c0bf52 Stop reinventing eprintln 2019-01-26 11:33:05 +01:00
Andreas Nordal
0c09ac1108 How to: Looking at negated command's exit status is uncool
fixes #24
2019-01-07 02:37:21 +01:00
anordal
1fcc978537 (15) Allow "$*" 2018-10-27 12:26:03 +02:00
anordal
e403ff50aa Get rid of an unreachable panic 2018-10-27 12:23:42 +02:00
anordal
7757f7a9e0 Rm unreachable condition 2018-10-27 12:23:32 +02:00
Andreas Nordal
1d17c61eae This is version 4.1 2018-09-13 21:45:32 +02:00
anordal
1f8aeec033 Allow unquoted case arms 2018-09-13 21:44:14 +02:00