User Tools

Site Tools


shell

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
shell [2010/05/20 08:29]
vidarh
shell [2011/09/30 07:57] (current)
192.89.97.1
Line 29: Line 29:
  
 TODO TODO
 +
 +==== MorphOS ====
 +
 +The standard shell in MorphOS provides scrollbars, tab completion, command history, iconification,​ lot of customization options, ability to hide file patterns and tabs. It has *nix compatibility mode for those familiar with Linux and others.
  
  
Line 40: Line 44:
  
 TODO: Expand. TODO: Expand.
- 
 ==== Amiga style options vs. Unix / Windows style options ==== ==== Amiga style options vs. Unix / Windows style options ====
  
-TODO: Describe ​ReadArgs ​style options.+TODO: Expand 
 + 
 +Amiga commands tends to use an OS supplied command line parser called ​ReadArgs. Commands that use this parser use a standard format for all their command line options. 
 + 
 +If you execute such a command with a "?"​ as the single argument, you will get a brief description of the options and their valid format. For example: 
 + 
 +    FROM/​M,​SEARCH/​A,​ALL/​S,​NONUM/​S 
 +     
 +(abridged from "​search ?"). The words are the names of the arguments, and may be supplied, but can also be omitted if the arguments are supplied in order and are still unambiguous,​ unless the argument is a boolean switch ("/​S"​). 
 + 
 +The character after "/"​ indicates the type of argument. 
 + 
 +  * /A = Mandatory argument 
 +  * /F = Argument must be last 
 +  * /M = Multiple arguments 
 +  * /N = Number 
 +  * /S = Switch (turn this option on by stating its name) 
 + 
 +Thus this would be a valid string for the program above: 
 + 
 +    search FROM DH0: SEARCH Foo ALL 
 +     
 +As would this (and they'd mean the same): 
 + 
 +    search DH0: Foo ALL 
 +  ​
  
 ==== Amiga replacements for common Unix/Linux commands ==== ==== Amiga replacements for common Unix/Linux commands ====
  
-^Linux ​              ​^Amiga ​               ^ +^Linux ​              ​^Amiga ​               ^Notes          ^ 
-|cd ..               |cd /                 | +|cat somefile.txt ​   |type somefile.txt ​   |               | 
-|ls                  |list                 | +|grep -r somefile.txt somedir %%|%% more | search somedir foo >​PIPE:​some-unique-name \\ more PIPE:​some-unique-name | TODO: Explanation of getting Unix style pipes working | 
-|ls *.txt            |list #?​.txt ​         | +|cd ..               |cd /                 |               
-|rm foo              |delete foo           |+|ls                  |list                 |               
 +|ls *.txt            |list #?​.txt ​         ​|               
 +|rm foo              |delete foo           ​| ​              | 
 +|grep foo /​somedir ​  ​|search /somedir foo  |               |  
 +|grep -r foo /​somedir|search /somedir foo ALL|             | 
 +|somecommand -?, somecmd --help etc. |somecommand ?|       | 
shell.1274344192.txt.gz · Last modified: 2010/05/20 08:29 by vidarh