Common Commands
By default, ARES commands start with @ when typed in local chat.
However, @ is not used when writing shell scripts. An @ in an ARES shell script indicates a label (jump destination).
Direct comparison with common shells:
Notes:
However, @ is not used when writing shell scripts. An @ in an ARES shell script indicates a label (jump destination).
Direct comparison with common shells:
Linux bash | Windows cmd.exe | ARES exec | ARES default aliases |
---|---|---|---|
cat <file> | type <file> | type <file> | |
ls <pattern> | dir <pattern> | fs match <pattern> | ls <pattern> |
ls | dir | fs | |
shutdown -h now | shutdown /s /t 0 | power system off | off |
echo <string> | echo <string> | echo <string> | |
<var>=<string> | set <var>=<string> | set <var> <string> | |
rm <file> | del <file> | fs remove <file> | |
env | set | db env | env |
exit | goto :EOF | exit | |
— | goto <label> | jump <label> | |
— | :<label> | @<label>: |
File existence checks | |
---|---|
bash | if -e <file>; then <command>; fi |
cmd.exe | if exist <file> <command> |
exec | if exist <file> then <command> |
String comparison | |
---|---|
bash | if [ <string1>==<string2> ]; then <command>; fi |
cmd.exe | if <string1>==<string2> <command> |
exec | if <string1> is <string2> then <command> |
Storing a numeric expression in an environment variable | |
---|---|
bash | let <var>=<math> |
cmd.exe | set /a <var>=<math> |
exec | set <var>=<math> |
Notes:
- The bourne shell is an ALGOL dialect; for ideological reasons it does not support goto
- The 'fs match <pattern>' facility in ARES is designed for creating file associations, not data science; it only supports a single "*" wildcard