From 0e677b8e527e0afbdbbcc1d2115c34495631bf59 Mon Sep 17 00:00:00 2001 From: Rawiri Blundell Date: Mon, 24 Apr 2023 23:17:32 +1200 Subject: [PATCH] Replace html '<' and '>' chars --- scripting/nonportable.md | 8 ++++---- scripting/terminalcodes.md | 6 +++--- scripting/tutoriallist.md | 32 ++++++++++++++++---------------- syntax/arith_expr.md | 10 +++++----- syntax/shellvars.md | 4 ++-- 5 files changed, 30 insertions(+), 30 deletions(-) diff --git a/scripting/nonportable.md b/scripting/nonportable.md index 9c14fb9..52d1cee 100644 --- a/scripting/nonportable.md +++ b/scripting/nonportable.md @@ -40,9 +40,9 @@ POSIX! command\ <<<\ WORD +style="text-align: center;">command\ <<<\ WORD command <<MARKER WORD MARKER +style="text-align: center;">command < a here-string, a special form of the here-document, avoid it in portable scripts! POSIX(r) @@ -78,9 +78,9 @@ classic test command COMMAND\ <\ <(\ ...INPUTCOMMANDS...\ ) +style="text-align: center;">COMMAND\ <\ <(\ ...INPUTCOMMANDS...\ ) INPUTCOMMANDS\ >\ TEMPFILE COMMAND\ <\ TEMPFILE +style="text-align: center;">INPUTCOMMANDS\ >\ TEMPFILE COMMAND\ <\ TEMPFILE Process substitution (here used with redirection); use the old fashioned way (tempfiles) POSIX(r) and others diff --git a/scripting/terminalcodes.md b/scripting/terminalcodes.md index db6a27b..43e6eb2 100644 --- a/scripting/terminalcodes.md +++ b/scripting/terminalcodes.md @@ -89,9 +89,9 @@ terminals. -[ <X> ; <Y> H
-[ <X> ; <Y> f -cup <X> <Y> +[ ; H
+[ ; f +cup Home-positioning to X and Y coordinates
:!: it seems that ANSI uses 1-1 as home while tput uses diff --git a/scripting/tutoriallist.md b/scripting/tutoriallist.md index c231430..91fd2de 100644 --- a/scripting/tutoriallist.md +++ b/scripting/tutoriallist.md @@ -59,7 +59,7 @@ indicator click (new revision draft) -<progress=90> + This guide teaches modern stuff and good practises. I recommend learning from it. It was written by the guys in #bashIRC channel on Freenode (mainly lhunath), @@ -69,7 +69,7 @@ because there are so many bad tutorials out there. Steve Parker's shell scripting guide click -<progress=90> + Very good (not only Bash) shell scripting guide. Teaches good practices, gives background information. @@ -78,7 +78,7 @@ guide. Teaches good practices, gives background information. href="#rv_bgb">review) click -<progress=80> + Good introduction that really requires no previous knowledge, also covers the most important unix utilities @@ -87,7 +87,7 @@ previous knowledge, also covers the most important unix utilities href="#rv_abs">review) click -<progress=50> + Has a lot of information that is hard to find, is outdated and often unsafe. To be avoided until you can filter out the good stuff. @@ -101,7 +101,7 @@ href="http://www.ibm.com/developerworks/library/l-bash.html">click(1)
href="http://www.ibm.com/developerworks/library/l-bash2.html">click(2)
click(3) -<progress=80> + Doesn't teach outdated stuff, doesn't tell you wrong things. A good start, though not that detailed. @@ -109,7 +109,7 @@ you wrong things. A good start, though not that detailed. Deadman's click -<progress=70> + Focus isn't scripting per se. Focus is interactive use and increasing the productivity on the prompt. Teaches some nice features. @@ -119,7 +119,7 @@ some nice features. Lutus) click -<progress=70> + Good start. Though there are small bugs. @@ -128,7 +128,7 @@ bugs. href="#rv_hypexrorg">review) click -<progress=50> + Shows you some nice stuff and links to other ressources. Not a tutorial to learn Bash, though. @@ -137,7 +137,7 @@ other ressources. Not a tutorial to learn Bash, though. (review) click -<progress=10> + Absolute crap. Many syntax errors alone. @@ -146,7 +146,7 @@ alone. href="#rv_qguide">review) click -<progress=50> + Usable as a start. Doesn't teach wrong stuff, shows you good practices. @@ -156,7 +156,7 @@ stuff, shows you good practices. complete click -<progress=50> + Practise oriented, some mistakes/flaws, but sadly it stops in the middle @@ -165,7 +165,7 @@ but sadly it stops in the middle (review) click -<progress=40> + currently reviewing (the tutorial is also under development) @@ -174,7 +174,7 @@ under development) (review) click -<progress=0> + Teaches many outdated, unstable, undetailed stuff. You won't learn scripting from there. @@ -182,7 +182,7 @@ undetailed stuff. You won't learn scripting from there. Beginner\ Linux\ Tutorial click -<progress=60> + A comprehensive introduction to the Linux Command Line including ample examples to make learning easy. @@ -190,7 +190,7 @@ Command Line including ample examples to make learning easy. Beginner\ Bash\ Scripting\ Tutorial click -<progress=60> + A beginners guide to Bash scripting under Linux. @@ -199,7 +199,7 @@ Linux. Line click -<progress=40> + A beginners guide to using Bash shell, basic unix utilities, and shell scripting. Shell scripting part is not so good. But good introduction on how to use various utilities in diff --git a/syntax/arith_expr.md b/syntax/arith_expr.md index 5c3947f..3b05dff 100644 --- a/syntax/arith_expr.md +++ b/syntax/arith_expr.md @@ -245,18 +245,18 @@ variable id (not required by POSIX(r)) <EXPR> ? <EXPR> : <EXPR> +style="text-align: left;"> ? : conditional (ternary) operator
-<condition> ? <result-if-true> : -<result-if-false> + ? : + <EXPR> , <EXPR> +style="text-align: left;"> , expression list -( <EXPR> ) +( ) subexpression (to force precedence) diff --git a/syntax/shellvars.md b/syntax/shellvars.md index 90c829b..fb993e3 100644 --- a/syntax/shellvars.md +++ b/syntax/shellvars.md @@ -82,9 +82,9 @@ pipeline (like started with command &) The name of the shell or the shell script (filename). Set by the shell itself.
If Bash is started with a filename to execute (script), it's set to this -filename. If started with the -c <CMDLINE> option +filename. If started with the -c option (commandline given as argument), then $0 will be the first -argument after the given <CMDLINE>. Otherwise, it is +argument after the given . Otherwise, it is set to the string given on invocation for argv[0].
Unlike popular belief, $0 is not a positional parameter.