Return-Path: william@bourbon.usc.edu Delivery-Date: Sat Nov 22 20:37:30 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on merlot.usc.edu X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3 Received: from bourbon.usc.edu (bourbon.usc.edu [128.125.9.75]) by merlot.usc.edu (8.14.1/8.14.1) with ESMTP id mAN4bU3N008376 for ; Sat, 22 Nov 2008 20:37:30 -0800 Received: from bourbon.usc.edu (localhost.localdomain [127.0.0.1]) by bourbon.usc.edu (8.14.2/8.14.1) with ESMTP id mAN4ZTXF016637 for ; Sat, 22 Nov 2008 20:35:29 -0800 Message-Id: <200811230435.mAN4ZTXF016637@bourbon.usc.edu> To: cs551@merlot.usc.edu Subject: Re: CS551: Final Project 2 : Search and Get commands Date: Sat, 22 Nov 2008 20:35:29 -0800 From: Bill Cheng Someone wrote: > this is the sequence of commands i meant in the previous case: > > servant:XXXXX> search filename=foo > /* > search results, 1,2,3... > */ > servant:XXXXX> gte 2 > /* > error message, as its a wrong input > */ > servant:XXXXX> get 2 > > what would be the behaviour now ? If you've made a typo in your command, it should be treated as if you have never entered the command. Your user interface should have a state, which can be the last valid command that was processed. -- Bill Cheng // bill.cheng@usc.edu On Fri, Nov 21, 2008 at 8:37 AM, Bill Cheng wrote: > Someone wrote: > > > we have the following: > > "Please note that a get command should not be allowed if it does not > > immediately follow a search or a get command." > > > > now, if a user performs the following at the prompt, should it be > allowed or > > not ? > > > > servant:XXXXX> search filename=foo > > /* > > search results, 1,2,3... > > */ > > servant:XXXXX> get 2 > > /* > > error message, as its a wrong input > > */ > > servant:XXXXX> get 2 > > > > should the last get command be processed ? > > I don't know why you said that the first "get 2" has a "wrong input". > > If the first "get 2" was successful, then for the 2nd "get 2", > you should follow the first bullet in the "Additional Notes > on File Retrieval (for Part 2 only)" section of the spec. > -- > Bill Cheng // bill.cheng@usc.edu