On 2004-05-08 22:00:38 -0400, alex wrote:
> alias win+='mount -t vfat /dev/hda1 /mnt/hda1; cd /mnt/hda1; ls 
> -aF --color=auto'    (This is located in   /root/.bashrc)
[...]
> I've read that aliases should be limited to simpler
> commands such as:
>      alias cd..='cd ..'  or  alias lsl='ls -l'
> and that aliases like my win+ should be structered as a function 
> instead of an alias.

I agree.

> I've tried the same command in function form and I don't see any
> difference.

win+ 2> error

makes a difference (when something is sent to stderr).
So do things like:

[[ condition ]] && win+

-- 
Vincent Lef�vre <[EMAIL PROTECTED]> - Web: <http://www.vinc17.org/>
100% validated (X)HTML - Acorn / RISC OS / ARM, free software, YP17,
Championnat International des Jeux Math�matiques et Logiques, etc.
Work: CR INRIA - computer arithmetic / SPACES project at LORIA


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to