I was looking for a way to alias the emacs ediff for easier use in c-shell.
When writing emacs --eval "(ediff "f1" "f2")", emacs is opened in ediff mode, comparing file f1 to file f2.
When trying to alias it, however, I didn't find a way to insert the files names from the command line.
The following code works for bash, but not for c-shell (because c-shell don't support functions):
function ediff() {
emacs --eval "(ediff \"$1\" \"$2\")"}
Also tried emacs --eval "(ediff \!*)", but it didn't work as well.
Anyone knows of a way to make this aliasing?
edit
Following the suggestion in the comments, I created a bash script called ediff that all it does is emacs --eval "(ediff \"$1\" \"$2\")".
Couldn't make the csh to even eval \"$1\"!