-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
144 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
Ymp Shell | ||
========= | ||
You can create new ymp shell with **ymp shell** command or **ympsh** command. You can run ymp operations into shell. | ||
|
||
.. code-block:: shell | ||
ymp shell | ||
-> Ymp >> install git | ||
Commends | ||
^^^^^^^^ | ||
You can use **#** symbol or **:** operdation (dummy) | ||
|
||
.. code-block:: shell | ||
# hello world | ||
: Hello world | ||
Escape & exclusive characters | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
**$** character used for variables. | ||
|
||
.. code-block:: shell | ||
set num 13 | ||
echo $num | ||
**\\** character ignore next characters functions | ||
|
||
.. code-block:: shell | ||
set msg Hello\ World | ||
echo $msg | ||
**"** character define string | ||
|
||
.. code-block:: shell | ||
set msg "Hello World" | ||
echo $msg | ||
**`** character execute command and replace output with yourself | ||
|
||
.. code-block:: shell | ||
set dist `uname -a` | ||
echo $dist | ||
Conditions | ||
^^^^^^^^^^ | ||
**If** segment used for conditions. If segment must starts with **if** and must ends with **endif** | ||
|
||
.. code-block:: shell | ||
read var | ||
if eq 12 $var | ||
echo equal to 12 | ||
endif | ||
Labels and goto | ||
^^^^^^^^^^^^^^^ | ||
You can define label and use **goto** word like this | ||
.. code-block:: shell | ||
label test | ||
read var | ||
if eq $var 0 | ||
exit | ||
endif | ||
echo $var | ||
goto test | ||
This program can simulate while loop | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters