mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	fix(demo): geomap incorrect
This commit is contained in:
		| @@ -14,7 +14,6 @@ | ||||
|  | ||||
|       <div class="ck-content"> | ||||
|         <h3>Login shell</h3> | ||||
|  | ||||
|         <p>As a "login shell", Bash reads and sets (executes) the user's profile | ||||
|           from /etc/profile and one of ~/.bash_profile, ~/.bash_login, or ~/.profile | ||||
|           (in that order, using the first one that's readable!).</p> | ||||
| @@ -24,7 +23,6 @@ | ||||
|           that only make sense for the initial user login. That's why all UNIX® shells | ||||
|           have (should have) a "login" mode.</p> | ||||
|         <p><em><strong>Methods to start Bash as a login shell:</strong></em> | ||||
|  | ||||
|         </p> | ||||
|         <ul> | ||||
|           <li>the first character of argv[0] is - (a hyphen): traditional UNIX® shells | ||||
| @@ -33,20 +31,17 @@ | ||||
|           <li>Bash is started with the --login option</li> | ||||
|         </ul> | ||||
|         <p><em><strong>Methods to test for login shell mode:</strong></em> | ||||
|  | ||||
|         </p> | ||||
|         <ul> | ||||
|           <li>the shell option <a href="http://wiki.bash-hackers.org/internals/shell_options#login_shell">login_shell</a> is | ||||
|             set</li> | ||||
|         </ul> | ||||
|         <p><em><strong>Related switches:</strong></em> | ||||
|  | ||||
|         </p> | ||||
|         <ul> | ||||
|           <li>--noprofile disables reading of all profile files</li> | ||||
|         </ul> | ||||
|          <h3>Interactive shell</h3> | ||||
|  | ||||
|         <p>When Bash starts as an interactive non-login shell, it reads and executes | ||||
|           commands from ~/.bashrc. This file should contain, for example, aliases, | ||||
|           since they need to be defined in every shell as they're not inherited from | ||||
| @@ -56,13 +51,11 @@ | ||||
|           The classic way to have a system-wide rc file is to source /etc/bashrc | ||||
|           from every user's ~/.bashrc.</p> | ||||
|         <p><em><strong>Methods to test for interactive-shell mode:</strong></em> | ||||
|  | ||||
|         </p> | ||||
|         <ul> | ||||
|           <li>the special parameter $- contains the letter i (lowercase I)</li> | ||||
|         </ul> | ||||
|         <p><em><strong>Related switches:</strong></em> | ||||
|  | ||||
|         </p> | ||||
|         <ul> | ||||
|           <li>-i forces the interactive mode</li> | ||||
| @@ -72,7 +65,6 @@ | ||||
|             ~/.bashrc)</li> | ||||
|         </ul> | ||||
|          <h3>SH mode</h3> | ||||
|  | ||||
|         <p>When Bash starts in SH compatiblity mode, it tries to mimic the startup | ||||
|           behaviour of historical versions of sh as closely as possible, while conforming | ||||
|           to the POSIX® standard as well. The profile files read are /etc/profile | ||||
| @@ -82,7 +74,6 @@ | ||||
|           file.</p> | ||||
|         <p>After the startup files are read, Bash enters the <a href="http://wiki.bash-hackers.org/scripting/bashbehaviour#posix_run_mode">POSIX(r) compatiblity mode (for running, not for starting!)</a>.</p> | ||||
|         <p><em><strong>Bash starts in sh compatiblity mode when:</strong></em> | ||||
|  | ||||
|         </p> | ||||
|         <ul> | ||||
|           <li> | ||||
|   | ||||
| @@ -14,25 +14,42 @@ | ||||
|  | ||||
|       <div class="ck-content"> | ||||
|         <p>Documentation: <a href="http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_09_02.html">http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_09_02.html</a> | ||||
|  | ||||
|         </p><pre><code class="language-text-x-sh">#!/bin/bash | ||||
|  | ||||
|  | ||||
|  | ||||
| # This script opens 4 terminal windows. | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| i="0" | ||||
|  | ||||
|  | ||||
|  | ||||
| while [ $i -lt 4 ] | ||||
|  | ||||
|  | ||||
|  | ||||
| do | ||||
|  | ||||
|  | ||||
|  | ||||
|     xterm & | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|     i=$[$i+1] | ||||
|  | ||||
|  | ||||
|  | ||||
| done</code></pre> | ||||
|       </div> | ||||
|     </div> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user