View Single Post
Old 09-24-2002, 11:45 AM   #3 (permalink)
julesh
Registered User
 
Join Date: Sep 2002
Location: alexandria
Posts: 2
julesh is on a distinguished road
bash programming/thanks bdl

bdl ,i have tried doing what you showed me.
i have been half way succesful at it.

but if i may explain what i'm trying to do.
i'm learning from a book name Redhat linux 7.2 unleashed.
on page 595 of that book is there a sample program.
#! /bin/sh
alias ll='ls -l'
alias dir='ls'
alias copy='cp

i saved this file as myenv.
and then i enter the command # chmod +x myenv.

after that i enter the command
export PATH="$PATH:$HOME/bin"

after all this i enter, as instructed in the book, myenv as a command .
i got an error message stating that command not found.

Can you explain to me what i'm doing wrong or missing?

your help is greatly appreciated.
julesh is offline   Reply With Quote