Problem: ksh and aliases

Problem: ksh and aliases

Post by Murray Nesbi » Fri, 03 Nov 1995 04:00:00

> I have read the ksh man page over and over again.

> I want to set aliases automatically.

> I cat set my aliases at the keyboard no problem.
> BUT if I put the alias definitions in the .profile they
> do NOT take effect.

Try putting your aliases into the file ${HOME}/.kshrc and add the
following line to your .profile:

        ENV=${HOME}/.kshrc ; export ENV

Search for ``ENV'' in the ksh man page for more details.



Problem: ksh and aliases

Post by NetSco » Fri, 03 Nov 1995 04:00:00


in your profile, include this if-then

if [ -r $HOME/.kshrc ]
   export ENV

then, in your home directory create a file called .kshrc and put your
alias stuff there..  Something cool would be like this:

# .kshrc

# This will export your PS1 (prompt) kinda like DOS
   if [ -d $1 ]
      cd $1
      export PS1                             #unless your doing it in the
      echo "Invalid directory!"


alias cd="cdd"

   cd $HOME


# end .kshrc


1. script alias problem - Re: apache alias and script alias problem

I actually did not have the <Directory> setup properly.

I am still having a problem with the script alias.

For example.

I set an alias -

Alias / /home/user1/html/

and a Script Alias -
ScriptAlias /cgi-bin/ /home/user/cgi-bin/

However the script alias is not working because the log shows that
when entering:

/home/user/html/cgi-bin/ is actually being referenced.

When I remove the first Alias statement the cgi-bin script directory
is properly aliased.

Any suggestions.



Please remove TOREMOVE chars to e-mail me

2. Why does IP masquerading work without ip_masq_ftp.o ?

3. Problem of using alias in ksh

4. How to #define multiple text lines in Unix c source code

5. Matrox Mystique ands X.

6. Art and all that Jazz: try not to answer a exit

7. aliases, aliases, aliases...

8. Probs compiling getstats-1.2 on Solaris 2.4

9. apache alias and script alias problem

10. SENDMAIL problem: Aliasing non-local names in /etc/mail/aliases

11. How can I define an alias for an arrow key in ksh (AIX 3.2)?

12. alias in KSH ?

13. alias in ksh