From: W. Trevor King Date: Tue, 1 Jan 2013 01:34:52 +0000 (-0500) Subject: swc-installation-test-2.py: Add a virtual-shell and non-Bash shells X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7484f5ea8271aa9c603e8ca6400aa3a5a4aee87a;p=swc-workshop.git swc-installation-test-2.py: Add a virtual-shell and non-Bash shells Commit to POSIX.2 [1] compatibility by allowing additional shells. If anyone has something besides sh, bash, or dash installed, they probably know how to use it ;). [1]: http://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html IEEE Std 1003.2-1992 --- diff --git a/swc-installation-test-2.py b/swc-installation-test-2.py index c28c02b..b0eeb29 100755 --- a/swc-installation-test-2.py +++ b/swc-installation-test-2.py @@ -51,7 +51,7 @@ __version__ = '0.1' # Comment out any entries you don't need CHECKS = [ # Shell - 'bash', + 'virtual-shell', # Editors 'virtual-editor', # Browsers @@ -294,7 +294,14 @@ class CommandDependency (Dependency): for command,long_name,minimum_version in [ + ('sh', 'Bourne Shell', None), + ('ash', 'Almquist Shell', None), ('bash', 'Bourne Again Shell', None), + ('csh', 'C Shell', None), + ('ksh', 'KornShell', None), + ('dash', 'Debian Almquist Shell', None), + ('tcsh', 'TENEX C Shell', None), + ('zsh', 'Z Shell', None), ('easy_install', 'Setuptools easy_install', None), ('git', 'Git', (1, 8, 0)), ('hg', 'Mercurial', (2, 0, 0)), @@ -414,6 +421,16 @@ class VirtualDependency (Dependency): for name,dependencies in [ + ('virtual-shell', ( + 'sh', + 'ash', + 'bash', + 'csh', + 'ksh', + 'dash', + 'tcsh', + 'zsh', + )), ('virtual-editor', ( 'emacs', 'xemacs',