From owner-freebsd-questions@FreeBSD.ORG Sun Mar 1 09:56:40 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 DF4C1106566B for ; Sun, 1 Mar 2009 09:56:40 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id 294C88FC1E for ; Sun, 1 Mar 2009 09:56:39 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3) with ESMTP id n219uTKi033102; Sun, 1 Mar 2009 10:56:29 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3/Submit) with ESMTP id n219uSqW033099; Sun, 1 Mar 2009 10:56:28 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Sun, 1 Mar 2009 10:56:28 +0100 (CET) From: Wojciech Puchar To: Fbsd1 In-Reply-To: <49AA4EAB.8080009@a1poweruser.com> Message-ID: References: <49AA4EAB.8080009@a1poweruser.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: FreeBSD Questions Subject: Re: link to dos2unix 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: Sun, 01 Mar 2009 09:56:41 -0000 > long name. I tried to do a hard link on it. > ln /usr/local/bin/dos2unix /usr/local/bin/d2u > This command is accepted without error, but when it execute it > d2u xxxx.txt > I get message ==oops you renamed me using unix2dos instead. > I also tried > ln -s /usr/local/bin/dos2unix /usr/local/bin/d2u > and got same results. ls -l does not show dos2unix as linked all ready. > > What am I doing wrong here? it HAS to be called dos2unix - this program reacts on the name it was called as because dos2unix and unix2dos are the same binary. if called as d2u - it doesn't know what to do. use shell aliases