On Thu, 12 Feb 2015, Jan Stary wrote:

> I have some man pages installed in $HOME/man
> so I ugment my manpath like this in my ~/.shrc
> 
>   test -d $HOME/man && alias man="man -m $HOME/man"
> 
> Now man(1) complains saying
> 
>   $ man ls
>   man: -m/home/hans/man: Bad argument
> 
> Using "$HOME/man/" or "$HOME/man:" results in the same.
> 
> Am I missing something obvious?
> 
>       Jan
> 

What does it show when you run the alias command with no arguments to
display your current aliases?

I noticed that in the error message there is no space between -m and the
path.  That seems a bit odd.

Your `test -d $HOME/man && alias man="man -m $HOME/man"` works fine for me
in ksh when I put it in a .profile on 5.6 -stable.

-- 

John Merriam

Reply via email to