Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

strange alias effects



I just upgraded to 3.1.7-pre-4 and found something strange:

In my dot-files I've got this (among others):
 alias psl='ps -eo user,pid,ppid,cpu,pmem,rss,vsize,bsdtime,bsdstart,cmd --sort user,pid | \grep -v "bsdtime,bsdstart"' 
 alias pslS='ps -eo user,pid,ppid,cpu,pmem,rss,vsize,bsdtime,bsdstart,cmd --sort -size | \grep -v "bsdtime,bsdstart"'
 look.for () { psl | \grep -iE "(^USER|$@)" | \grep -v "grep -iE" }
 alias lookall='psl | grep -vE "(^($USERNAME|root|bin))|login"'

When I type
 look.for ssh-agent
I get:
 look.for: command not found: psl

"lookall" works as usual.

After typing
 look.for () { psl | \grep -iE "(^USER|$@)" | \grep -v "grep -iE" }
on the shell prompt, it works.

Can anyone explain this to me, please?
 Thanks,
   Andy.

-- 
 E-Mail: Andy@xxxxxxxxx     URL: http://andy.spiegl.de
 PGP/GPG: see headers
                                o      _     _         _
  --------- __o       __o      /\_   _ \\o  (_)\__/o  (_)
  ------- _`\<,_    _`\<,_    _>(_) (_)/<_    \_| \   _|/' \/
  ------ (_)/ (_)  (_)/ (_)  (_)        (_)   (_)    (_)'  _\o_
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



Messages sorted by: Reverse Date, Date, Thread, Author