Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10 5/3/83; site mprvaxa.UUCP
Path: utzoo!linus!decvax!microsoft!uw-beaver!ubc-visi!mprvaxa!vsu
From: vsu@mprvaxa
Newsgroups: net.wanted,net.unix-wizards
Subject: shell conversion
Message-ID: <247@mprvaxa.UUCP>
Date: Wed, 3-Aug-83 18:58:55 EDT
Article-I.D.: mprvaxa.247
Posted: Wed Aug  3 18:58:55 1983
Date-Received: Fri, 5-Aug-83 14:55:28 EDT
Organization: Microtel Pacific Research, Burnaby BC
Lines: 26


	My thanks to Messrs. Natalie,Callow,Gwyn,Weiser,Harris and Kraines for
	their responses.  The list below shows the kind of thing I'm looking for
	but of course it's not complete. If it were, one could write a program
	to convert shells (almost)

		PWB SHELL			BOURNE V7 SHELL
		---------                       ---------------	
                                                                                
    1.                               | Must have #! /bin/sh as first line else
                                     | gets treated as C shell.                 
                                     |                                          
    2.   = a ""                      | a=""                                     
                                     |                                          
    3.  if "$n" -gt 0 then           | if test "$#" -gt 0; then...              
        $n is nb. of parms to shell  | Must use test and $n--> $#               
                                     |                                          
    4.  endif                        | fi                                       
                                     |                                          
    5.  ; 'comment'                  | # comment
                                     |                                          
    6.  echo "string \c"             | echo -n "string"                         
                                     |                                          
    7.  expr arg | = c               | c=`expr arg`
                                     |                                          
    8.  savoir faire                 | je ne sais quoi                          
                                     |