sh(ID:568/sh:001)

Command language for UNIX 


(or "Shellish"). Steve Bourne.
Command shell interpreter and script language for Unix.



Places
Related languages
MULTICS => sh   Evolution of
sh => csh   Extension of
sh => ksh   Adaptation of
sh => rc   Evolution of
sh => zsh   Extension of

References:
  • Bourne, S.R. "Unix Time-Sharing System: The Unix Shell", Bell Sys Tech J 57(6):1971-1990 (Jul 1978). view details
  • Steve Bourne: An Introduction to the UNIX Shell view details External link: online copy
    Resources

    • bnf: item:
      word
      input-output
      name = value
      simple-command:
      item
      simple-command item
      command:
      simple-command
      ( command-list )
      { command-list }
      for name do command-list done
      for name in word ... do command-list done
      while command-list do command-list done
      until command-list do command-list done
      case word in case-part ... esac
      if command-list then command-list else-part fi
      pipeline:
      command
      pipeline | command
      andor:
      pipeline
      andor && pipeline
      andor || pipeline
      command-list:
      andor
      command-list ;
      command-list &
      command-list ; andor
      command-list & andor
      input-output:
      > file
      < file
      >> word
      << word
      file:
      word
      & digit
      & -
      case-part:
      pattern ) command-list ;;
      pattern:
      word
      pattern | word
      else-part:
      elif command-list then command-list else-part
      else command-list
      empty
      empty:
      word:
      a sequence of non-blank characters
      name:
      a sequence of letters, digits or underscores starting with a letter
      digit:
      0 1 2 3 4 5 6 7 8 9