On Sun, 25 Nov 2001, "Kenneth E. Lussier" <[EMAIL PROTECTED]> wrote:
>
> I didn't understand how bad aliases were until I stopped using RedHat.
> I don't know if they still do it, but they used to alias rm, ls, cat,
> and a bunch of other things. I just figured "OK, different *NIX,
> different command action". Well, that caused some probles on other
> systems. So now that I don't use RH, I no longer have a single alias,
> and I find that I can pewdict the outcome of a script much easier. 


Aliases are not expanded in scripts (i.e. when the shell is non interactive).
See bash(1).  Functions (not aliases) may be a different matter.


I have a lot of aliases, they are a good thing IMHO.  I work at the shell
cmd line a lot. 

% alias | wc -l
    124

many of them are aliases like "cdfoo" that cd to the down to the
directory of my "foo" project, etc.


Karl


FWIW, here are my ls related aliases, not all of them were mentioned earlier
by others:

ls      ls -F                   # -F puts the visual clue trailing character
ll      ls -lF | more           # long listing
lsa     ls -aF                  # list the "." files too
lss     ls -lSF | more          # list by size
lst     ls -ltF | more          # list by modification time
lsr     ls -lRF | more          # recurse directories


*****************************************************************
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*****************************************************************

Reply via email to