link to dos2unix

2009-03-01 Thread Fbsd1
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 .txt I get message ==oops you renamed me using unix2dos

Re: link to dos2unix

2009-03-01 Thread Wojciech Puchar
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 .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

Re: link to dos2unix

2009-03-01 Thread Roland Smith
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

Re: link to dos2unix

2009-03-01 Thread Fbsd1
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

Re: link to dos2unix

2009-03-01 Thread Lars Eighner
On Sun, 1 Mar 2009, Fbsd1 wrote: I get message ==oops you renamed me using unix2dos instead. Someone else has already replied that the binary only knows what to do by checking the name used to call it. The way to do what you want is to use an alias in your shell. In BASH this would be