Windows has a shell.
Two, in fact:
CMD.EXE
PowerShell.EXE
. . .
Technically, Windows Explorer is a "shell" for the GUI environment.
sh
- Bourne shell
ash
- Almquist shell
dash
- Debian Almquist shellbash
- "Bourne-again" shellksh
- Korn shellzsh
- Z shellcsh
- C shell- and many more!
Typically bash
~ $ set
BASH=/bin/bash
BASHOPTS=checkwinsize:cmdhist:complete_fullquote:...
BASH_ALIASES=()
BASH_ARGC=()
BASH_ARGV=()
BASH_CMDS=()
...and so on...
C:\Users\myuser>set
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\myuser\AppData\Roaming
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=JLEHMER650
...and so on...
bash
:
~ $ echo $HOME
/home/myuser
CMD.EXE
:
C:\> echo %homepath%
\Users\myuser
$variable
(bash
) vs.%variable%
(CMD.EXE
)bash
is case-sensitive,CMD.EXE
is not
~ $ FOO=myval /home/myuser/myscript
~ $ CURRDATE=`date`
~ $ echo $CURRDATE
Wed Oct 28 11:43:38 CDT 2015
$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:...
- Tab expansion
- Command history