From owner-freebsd-questions@FreeBSD.ORG Sun Mar 1 10:52:48 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 1FC58106566B for ; Sun, 1 Mar 2009 10:52:48 +0000 (UTC) (envelope-from fbsd1@a1poweruser.com) Received: from mail-03.name-services.com (mail-03.name-services.com [69.64.155.195]) by mx1.freebsd.org (Postfix) with ESMTP id 0B3978FC0A for ; Sun, 1 Mar 2009 10:52:48 +0000 (UTC) (envelope-from fbsd1@a1poweruser.com) Received: from [10.0.10.6] ([202.69.172.51]) by mail-03.name-services.com with Microsoft SMTPSVC(6.0.3790.3959); Sun, 1 Mar 2009 02:52:32 -0800 Message-ID: <49AA68FB.6010007@a1poweruser.com> Date: Sun, 01 Mar 2009 18:52:43 +0800 From: Fbsd1 User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Roland Smith References: <49AA4EAB.8080009@a1poweruser.com> <20090301100200.GA36922@slackbox.xs4all.nl> In-Reply-To: <20090301100200.GA36922@slackbox.xs4all.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 01 Mar 2009 10:52:33.0208 (UTC) FILETIME=[D327EB80:01C99A5B] X-Sender: fbsd1@a1poweruser.com 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 10:52:48 -0000 Roland Smith wrote: > On Sun, Mar 01, 2009 at 05:00:27PM +0800, Fbsd1 wrote: >> I use the dos2unix console command all the time. I am tried to typing in >> that 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? > > Usually, programs like this perform dos2unix or unix2dos translations > depending on how they are called. So renaming them won't work. > > Try adding an alias to your favorite shell. That should work. E.g.put > 'alias d2u dos2unix' and 'alias u2d unix2dos' in your .cshrc. > > Roland Thank you. That worked.