Return-Path: william@bourbon.usc.edu Delivery-Date: Fri Nov 21 08:39:36 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 mALGdaku023433 for ; Fri, 21 Nov 2008 08:39:36 -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 mALGbBv6031343 for ; Fri, 21 Nov 2008 08:37:11 -0800 Message-Id: <200811211637.mALGbBv6031343@bourbon.usc.edu> To: cs551@merlot.usc.edu Subject: Re: CS551: Final Project 2 : Search and Get commands Date: Fri, 21 Nov 2008 08:37:11 -0800 From: Bill Cheng 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