Mercurial Hosting > reactionary
diff src/learn_bash.html.luan @ 91:76baf48ea36b
add translation
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 02 May 2025 17:17:52 -0600 |
parents | 88f46d75d28e |
children |
line wrap: on
line diff
--- a/src/learn_bash.html.luan Wed Apr 23 20:10:03 2025 -0600 +++ b/src/learn_bash.html.luan Fri May 02 17:17:52 2025 -0600 @@ -2,7 +2,9 @@ local error = Luan.error local pairs = Luan.pairs or error() local Io = require "luan:Io.luan" -local Http = require "luan:http/Http.luan" +local Site_translator = require "luan:gpt/Site_translator.luan" +local get_lang = Site_translator.get_lang or error() +local text_writer = Site_translator.text_writer or error() local Shared = require "site:/lib/Shared.luan" local head = Shared.head or error() local header = Shared.header or error() @@ -13,7 +15,7 @@ title = [[Introduction]] content = function() %> -<p>I really don't want to write this tutorial, but all the existing Bash tutorials are so horrible that I have no choice. I looked at books, websites, and YouTube - all horrible. They don't start with the basics. They include all kinds of useless crap. And they don't explain core concepts. So I have no choice but to write this for my <a href="/learn.html#bash">Learn Reactionary Programming</a> Bash lesson.</p> +<p>I really don't want to write this tutorial, but all the existing Bash tutorials are so horrible that I have no choice. I looked at books, websites, and YouTube - all horrible. They don't start with the basics. They include all kinds of useless crap. And they don't explain core concepts. So I have no choice but to write this for my <a href="learn.html#bash">Learn Reactionary Programming</a> Bash lesson.</p> <p><a href="bash.html">Bash</a> is a <a href="https://en.wikipedia.org/wiki/Unix_shell">shell</a>, one of many, but the one I prefer. I will focus on Mac and Windows. I don't have Linux, and I hate Linux, so I won't discuss it. Most of Bash is the same on Mac and Windows, but where they differ, I will discuss both.</p> <% @@ -557,7 +559,7 @@ ~/learn $ </code> -<p>Here I edit the file <code>file1</code> with <a href="/learn.html#editor">Sublime Text</a>, first by using the full path, and then by adding the directory to <code>PATH</code> so that Bash can find <code>subl</code>.</p> +<p>Here I edit the file <code>file1</code> with <a href="learn.html#editor">Sublime Text</a>, first by using the full path, and then by adding the directory to <code>PATH</code> so that Bash can find <code>subl</code>.</p> <p>I have Microsoft Word on Windows. From the Windows Command Prompt (not Bash):</p> @@ -1123,10 +1125,10 @@ end return function() - Io.stdout = Http.response.text_writer() + Io.stdout = text_writer() %> <!doctype html> -<html> +<html lang="<%=get_lang()%>"> <head> <% head() %> <title>Reactionary Bash Tutorial</title>