recentpopularlog in

sh

« earlier   
~sircmpwn/shit - sourcehut git
'This is an implementation of Git using (almost) entirely POSIX shell."
minimal  git  posix  sh 
12 days ago by jbkcc
remote clone script - By John Baldwin
$ cat remote-clone
#!/bin/sh
#
# This is a script to clone the local machine's hard drive from another
# machine. The other machine's name/IP is the only parameter and is required.
...
shell  script  backup  sh  cli  disasterrecovery 
14 days ago by dusko
UNIX Shell Quotes - a simple tutorial
Quotes within Quotes

While having two types of quotes (three if you count the backslash) might seem confusing, in reality it provides you with several ways to solve the same problems. You can put either quotes inside the other. If you want to quote single quotes, use double quotes around it. To quote double quotes, use single quotes. Heck, it's easier to show you:

% echo "Don't do that"
Don't do that
% echo 'The quote of the day is: "TGIF"'
The quote of the day is: "TGIF"
%
unix  shell  cli  commandline  tutorial  reference  sh  csh  tcsh 
15 days ago by dusko
the sensation of falling as you just hit sleep - greywash
Love is a much more vicious motivator.

Fem!Moran
V realistic and exciting post-Reichenbach
sh  johnlock 
4 weeks ago by ravelfic
lintsh - a Bourne shell that optionally warns about suspicious or nonportable constructs
lintsh is a Bourne shell that optionally warns about suspicious or nonportable constructs. It is intended to help script authors write correct, portable scripts; it will also be suitable for use as /bin/sh. It does not exist yet, and it might never, or perhaps the warning functionality could be added to an existing shell. Regardless, this list of gotchas will be maintained, and you can get into the habit of coding to avoid them.

The following programs are known to be in use as /bin/sh, in addition to the /bin/sh programs maintained by OS vendors. Please let me know about any not listed here.

bash (many GNU/Linux systems)
pdksh (OpenBSD)
zsh (Darwin, Mac OS X)
ash (Almquist shell: FreeBSD, NetBSD, DragonFly, Android)
dash (Debian Almquist shell)
Solaris ksh - maybe?
ksh88 - maybe?
ksh-93 - maybe?
sh  shell  unix  bsd  linux  freebsd  netbsd  openbsd  dragonflybsd  mac  applemacosx  script  programming 
4 weeks ago by dusko
V7sh - Implementation of the UNIX 7th Edition shell
The original Steve R. Bourne shell from the 7th edition Unix including System III, 4.3BSD-Reno, Ultrix 3.1 and ``home made’’ fixes and enhancements.
sh  shell  history  unix  bsd  freebsd 
4 weeks ago by dusko
Multics
Multics (Multiplexed Information and Computing Service) was a mainframe timesharing operating system begun in 1965 and used until 2000. Multics began as a research project and was an important influence on operating system development. The system became a commercial product sold by Honeywell to education, government, and industry.

Multics was a prototype of a Computer Utility (https://www.multicians.org/mgc.html#computerutility), providing secure computing to remote users at their terminals. Multicians still miss the elegant, consistent, and powerful programming environment; some Multics features are only now being added to contemporary systems.

The Multicians web site presents the story of the Multics operating system for people interested in the system's history, especially Multicians. The site's goals are to:

preserve the technical ideas and advances of Multics so others don't need to reinvent them
record the history of Multics, its builders, and its users before we all forget
give credit where it's due for important innovations
remember some good times and good people

The Multicians web site contains 460 HTML files (see the Site Map) comprising over 1,000,000 lines, 599 PDF files, and 459 graphic images. The site has benefited from the contributions of many authors. Contributions are invited: if you have a correction, fact, date, name, anecdote, or picture, please share it with Multicians everywhere by sending mail to the editor.
history  computing  shell  sh  unix 
4 weeks ago by dusko
The Origin of the Shell
Louis Pouzin explains how the concept and name of a "shell" was introduced in Multics in 1964/65.

He was inspired by Christopher Strachey's macro-generator (and its quoting and passing of arguments).
shell  sh  unix  history  computing 
4 weeks ago by dusko
An article from John Mashey in net.unix-wizards (1986)
From: wkt@css.adfa.oz.au (Warren Toomey)
Subject: `Mashey' shell repost
Date: 1999/01/27
Message-ID: <36ae6076.0@news.adfa.oz.au>
Sender: wkt@henry.cs.adfa.edu.au (Warren Toomey)
X-Trace: 27 Jan 1999 11:40:25 +1000, 131.236.253.20
Newsgroups: alt.folklore.computers

I just found this old netnews article, which is relevant to the
UNIX sheel discussion here recently. I've fixed any OCR mistakes,
but I've left the odd typo intact.

Warren

From: mash@mips.UUCP (John Mashey)
Newsgroups: net.unix-wizards
Subject: Re: Shell history, true facts, but long
Date: 18 Mar 86 09:05:12 GMT
sh  unix  shell  history  computing 
4 weeks ago by dusko
余音绕梁犹不绝 ——经典动画《哪吒闹海》幕后揭秘(六)
Some storyboards of a few scenes from 哪吒闹海, including 李靖抚琴.
Nezha  animation  storyboard  sh 
5 weeks ago by jdmartinsen
Morbig: A Static Parser for POSIX Shell
Yann Régis-Gianas, Nicolas Jeannerod, Ralf Treinen

“The POSIX shell language defies conventional wisdom of compiler construction on several levels: The shell language was not designed for static parsing, but with an intertwining of syntactic analysis and execution by expansion in mind. Token recognition cannot be specified by regular expressions, lexical analysis depends on the parsing context and the evaluation context, and the shell grammar given in the specification is ambiguous. Besides, the unorthodox design choices of the shell language fit badly in the usual specification languages used to describe other programming languages. This makes the standard usage of Lex and Yacc as a pipeline inadequate for the implementation of a parser for POSIX shell. The existing implementations of shell parsers are complex and use low-level character-level parsing code which is difficult to relate to the POSIX specification. We find it hard to trust such parsers, especially when using them for writing automatic verification tools for shell scripts.

This paper offers an overview of the technical difficulties related to the syntactic analysis of the POSIX shell language. It also describes how we have resolved these difficulties using advanced parsing techniques (namely speculative parsing, parser state introspection, context-dependent lexical analysis and longest-prefix parsing) while keeping the implementation at a sufficiently high level of abstraction so that experts can check that the POSIX standard is respected. The resulting tool, called Morbig, is an open-source static parser for a well-defined and realistic subset of the POSIX shell language.”

/via https://www.reddit.com/r/ProgrammingLanguages/comments/9t9931/morbig_a_static_parser_for_posix_shell/
paper  PLT  parsing  POSIX  sh  bash  formal-verification  functional-programming  ML  OCaml 
5 weeks ago by elliottcable

Copy this bookmark:





to read