From owner-freebsd-questions@FreeBSD.ORG Sun Mar 1 10:02:05 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 928E9106564A for ; Sun, 1 Mar 2009 10:02:05 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr4.xs4all.nl (smtp-vbr4.xs4all.nl [194.109.24.24]) by mx1.freebsd.org (Postfix) with ESMTP id 280458FC19 for ; Sun, 1 Mar 2009 10:02:04 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr4.xs4all.nl (8.13.8/8.13.8) with ESMTP id n21A21vN075804; Sun, 1 Mar 2009 11:02:01 +0100 (CET) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id EABD7BAA4; Sun, 1 Mar 2009 11:02:00 +0100 (CET) Date: Sun, 1 Mar 2009 11:02:00 +0100 From: Roland Smith To: Fbsd1 Message-ID: <20090301100200.GA36922@slackbox.xs4all.nl> References: <49AA4EAB.8080009@a1poweruser.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="W/nzBZO5zC0uMSeA" Content-Disposition: inline In-Reply-To: <49AA4EAB.8080009@a1poweruser.com> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.19 (2009-01-05) X-Virus-Scanned: by XS4ALL Virus Scanner 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:02:05 -0000 --W/nzBZO5zC0uMSeA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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= =20 > 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 =3D=3Doops 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. >=20 > 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 --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --W/nzBZO5zC0uMSeA Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.10 (FreeBSD) iEYEARECAAYFAkmqXRgACgkQEnfvsMMhpyUnqACfWNnH1KdEC/LtJqLdLvn5FYIW GR8AoJ47lAk6rbNs5niybUgQAGyoXONE =XR0b -----END PGP SIGNATURE----- --W/nzBZO5zC0uMSeA--