[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference hydra::amiga_v1

Title:AMIGA NOTES
Notice:Join us in the *NEW* conference - HYDRA::AMIGA_V2
Moderator:HYDRA::MOORE
Created:Sat Apr 26 1986
Last Modified:Wed Feb 05 1992
Last Successful Update:Fri Jun 06 1997
Number of topics:5378
Total number of notes:38326

317.0. "Stupid question" by ECC::JAERVINEN (impersonal name) Wed Feb 11 1987 08:29

    Can I make the CLI LIST command to list the whole directory tree?
    
    DIR has 'OPT A' but LIST doesn't - I have tried to do this with
    wild cards but no success. 
    
    ????
T.RTitleUserPersonal
Name
DateLines
317.1Time for a shellNOVA::RAVANWed Feb 11 1987 20:163
    nope.  I strongly suggest getting a shell.
    
    -jim
317.2ECC::JAERVINENimpersonal nameFri Feb 13 1987 04:382
    What shell?? There seem to be so many floating around.
    
317.3Drew/Dillon shellNOVA::RAVANFri Feb 13 1987 11:065
    True, there are many floating around.  I'm using Steve Drew's version
    (2.40M?, I think) of Matt Dillon's shell.  I think it is very nice.
    A network source for this shell is mentioned elsewhere in this notes file.
    
    -jim
317.4TLE::ANDERSONMike AndersonFri Feb 13 1987 18:2412
    re:.3
    
    The Drew/Dillon shell is the best I know of -- especially if you
    value the DCL style of command recall and editing.  You also get
    to avoid the sound of your disk drive every time you do a CLI command,
    since most of the commonly used commands are built into the shell.
    It also has aliasing, variables, redirection, search paths, flow
    control in command files, control of return status values, and lots
    of other features (most of which I haven't used yet).  And the price
    is definitely right.
    
    Mike
317.5ECC::JAERVINENimpersonal nameMon Feb 16 1987 03:3715
    In the meantime, I got a copy of the Drew/Dillon shell - really
    great. I have a CLI-only disk that loads the shell at initialization
    (and a couple of external commands to RAM:), and I can the remove
    the boot disk and still issue most commands without putting it back.
    
    I had one problem though (I'm probably doing something wrong):
    I ask for current date/time in startup, and then try to check
    _maxerr to ask again if the format wasn't correct. First, I clear
    _maxxerr, then ask for time, then I have a line roughly like
    
    if $_maxerr>0; goto again; endif
    
    but this seems to branch to the label 'again' every time...
    
    
317.6Shell Script FilesCGFSV1::DREWSteve DrewMon Feb 16 1987 18:3834
    
    A couple of things (from memory). 
    
    > if $_maxerr>0; goto again;endif
    
    You do need spaces here eg, if $_maxerr > 0;goto again;endif
    					   ^ ^
    
    Also you could also use the _lasterr symbol since it will contain
    the value of the last executed command. _maxerr only gets set with
    the highest error to date.
    
    Another method of error trapping in script files (my favorite)
    is the except handler.
    eg.
    
    
    #Get date check if valid
    # show current date, allow just a CR to keep that date
    
    label again
    set _except "1;echo Please Re-enter; goto again"
    
    date | input d; echo -n Enter Date [$d] ;input newdate; DATE $newdate
    unset _except d newdate
    
    
    the Shell script files are actually very powerfull, just take a
    little getting use to.
    
    
    Hope this helps.. /Steve.
    
    
317.7ECC::JAERVINENimpersonal nameTue Feb 17 1987 08:543
    I'll give it a try... I think I got a "redirection error" with
    spaces around the > though...