Posted May 19, 2005 15:35 UTC (Thu) by liljencrantz
In reply to: Incompatibility
Parent article: Fish - The friendly interactive shell
Good question. This is more or less what Red Hat already does on some files for tcsh, at least under Fedora Core 3. They have a bunch of shell scripts only containing lines like:
that are directly sourced by the init file under Bourne shells, and for tcsh, they run this monster:
eval `grep -v '^[:blank:]*#' $file | sed 's|\([^=]*\)=\([^=]*\)|setenv \1 \2|g' | sed 's|$|;|'`
Doing the same thing with aliases as well shouldn't be impossible. But it sure is ugly...
to post comments)