Post A7ProMG2fEctC3j5eq by Spaceface16518@fosstodon.org
(DIR) More posts by Spaceface16518@fosstodon.org
(DIR) Post #A7ProMG2fEctC3j5eq by Spaceface16518@fosstodon.org
2021-05-19T18:56:58Z
0 likes, 0 repeats
i really need to get good a bash. i keep having to resist the urge to use rust or python for structure and just shelling out from my comfort zone.
(DIR) Post #A7ProMgd4NtSWWAK6C by Naughtylus@fosstodon.org
2021-05-19T18:58:11Z
0 likes, 0 repeats
@Spaceface16518 Have you tried #nushell ?
(DIR) Post #A7QHk1cm2AwyqlxAwq by Spaceface16518@fosstodon.org
2021-05-19T23:48:45Z
0 likes, 0 repeats
@Naughtylus i’ve heard of it but never actually looked into it. i know it’s written in rust, but does it use rust as a scripting language or something?
(DIR) Post #A7QHl7NY7nB0zFLyeu by Spaceface16518@fosstodon.org
2021-05-19T23:48:57Z
0 likes, 0 repeats
@Naughtylus i’ve heard of it but never actually looked into it. i know it’s written in rust, but does it use rust as a scripting language or something?
(DIR) Post #A7RtXhfaOEzuu3mRMG by Naughtylus@fosstodon.org
2021-05-20T18:27:01Z
0 likes, 0 repeats
@Spaceface16518 No the language doesn't look like rust, but it is structured. Every command returns a table and you can filter rows or get columns like you would get attributes of struct.Essentially it's pipes taken to the next level: they don't send raw text data, but structured data.It's very cool for the little I used it, but it's still missing some "essential" features I got used to with fish so I haven't made the switch yet, but I'm contemplating the possibility.
(DIR) Post #A7Rtu12R3i1tLQ6iTw by Naughtylus@fosstodon.org
2021-05-20T18:31:03Z
0 likes, 0 repeats
@Spaceface16518 Although I don't know what it's worth as a scripting language (i.e. a dumb language that can act as easy glue between more complex programs, and above all, run almost everywhere with little to no dependency. Which `sh` is, `bash` is in most cases, but fish probably isn't as not many systems include it by default)Sorry I initially read your toot as "I really need to get a good bash".
(DIR) Post #A7RuzzqSVXvdKrvAVE by Naughtylus@fosstodon.org
2021-05-20T18:43:21Z
0 likes, 0 repeats
@Spaceface16518 I'm also following NGS, which looks more like a conventional shell, but is more scripting-oriented and seems to fix a lot of the issues I've had with sh or bash (like if a command fails, the script keeps going, which is usually not something you want for anything more complex than renaming files. And fixing it is at least 3 extra LoC for *each* essential command).If you want to learn a shell, might as well learn a new one, right? 🤷