Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Mar 2009 10:56:28 +0100 (CET)
From:      Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl>
To:        Fbsd1 <fbsd1@a1poweruser.com>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: link to dos2unix
Message-ID:  <alpine.BSF.2.00.0903011055340.33086@wojtek.tensor.gdynia.pl>
In-Reply-To: <49AA4EAB.8080009@a1poweruser.com>
References:  <49AA4EAB.8080009@a1poweruser.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.0903011055340.33086>