| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

Sash

This version was saved 15 years, 11 months ago View current version     Page history
Saved by PBworks
on April 11, 2008 at 11:56:36 am
 

Sash

Version: v3.7-mg

Status: Done

 


 

 

Info

Stand-alone shell (sash) is a Unix shell used for booting up the MG-35/45, and as the default command interpreter.


 

Boot (init)

Sash first runs as the boot manager (init), checking for (and executing if found):

  • ${HOME}/.aliasrc (${HOME} defaults to '/' in kernel)
  • /etc/sashrc

After it finishes running sashrc, it displays a command prompt on the console (serial port in developer kernel).

 

Subshell (sh, sash)

Whenever sash starts as a subshell, it checks for (and executes if found):

  • ${HOME}/.aliasrc (${HOME} defaults to '/usr/home' in /etc/sashrc)

 

 

Shell language

The sash shell has been extended to include support for:

  • ${VARNAME} environment variable expansion
  • if/elif/else/fi conditional (script only)

 

if [ <condition> ]

then

some command

elif [ <condition> ]

some other command

else

a third command

fi

  • while/do/done conditional loop (script only)

 

while [ <condition> ]

do

some command

some other command

done

 

Shell commands

alias      [name [command]]
aliasall   
-ar        [txp]v arFileName fileName ...
-cat       fileName ...
cd         [dirName]
-chgrp     gid fileName ...
-chmod     mode fileName ...
-chown     uid fileName ...
-clear     
-cmp       fileName1 fileName2
-cp        srcName ... destName
-dd        if=name of=name [bs=n] [count=n] [skip=n] [seek=n]
-dmesg     
-echo      [args] ...
-ed        [fileName]
exec       fileName [args]
exit       
-file      fileName ...
-find      dirName [-xdev] [-type chars] [-name pattern] [-size minSize]
-grep      [-in] word fileName ...
help       [word]
-kill      [-sig] pid ...
-ln        [-s] srcName ... destName
-ls        [-lidFC] fileName ...
-mkdir     dirName ...
-mknod     fileName type major minor
-more      fileName ...
-mount     [-t type] [-r] [-s] [-e] [-m] devName dirName
-mv        srcName ... destName
-pipeenv   VARNAME program [ | program ] ...
-printenv  [name]
prompt     string
-ps        
-pwd       
quit       
-rm        fileName ...
-rmdir     dirName ...
setenv     name value
sleep      seconds
source     fileName
.          fileName
-sum       fileName ...
-sync      
-tar       [cxtv]f tarFileName fileName ...
test       EXPRESSION
[          EXPRESSION
-touch     fileName ...
umask      [mask]
-umount    fileName
unalias    name
-where     program

 

History

Comments (0)

You don't have permission to comment on this page.