From owner-freebsd-questions@FreeBSD.ORG Wed Dec 30 00:50:10 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BB9BA106568B for ; Wed, 30 Dec 2009 00:50:10 +0000 (UTC) (envelope-from steve@ibctech.ca) Received: from smtp.ibctech.ca (v6.ibctech.ca [IPv6:2607:f118::b6]) by mx1.freebsd.org (Postfix) with SMTP id 46B618FC1A for ; Wed, 30 Dec 2009 00:50:10 +0000 (UTC) Received: (qmail 76119 invoked by uid 89); 30 Dec 2009 00:49:20 -0000 Received: from unknown (HELO ?IPv6:2607:f118::5?) (steve@ibctech.ca@2607:f118::5) by 2607:f118::b6 with ESMTPA; 30 Dec 2009 00:49:20 -0000 Message-ID: <4B3AA3CD.3020709@ibctech.ca> Date: Tue, 29 Dec 2009 19:50:21 -0500 From: Steve Bertrand User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: "freebsd-questions@freebsd.org Questions -" X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Adding an alias to .cshrc X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Dec 2009 00:50:10 -0000 Hi all, happy holidays! I want to add an alias to my .cshrc file: alias srm find . -name "*~" | xargs rm ...so that I have an easy way to remove the temp files left by svn. After adding the alias, logging out and then back in, I get an error stating: acct-dev: ISP-RADIUS % srm srm: Command not found. I thought that perhaps the file wasn't being read upon login, so I appended a new alias underneath: alias srm find . -name "*~" | xargs rm alias sll ls -lA ...which works fine when called after re-login. I even went as far as to prefix the find/xargs command with full paths, to no avail. Is this a problem with the pipe in the alias directive? The command works on the CLI, as I literally copy/pasted it into the .cshrc file. Steve