Incompatibility
Posted May 19, 2005 15:35 UTC (Thu) by
liljencrantz (subscriber, #28458)
In reply to:
Incompatibility by modernjazz
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:
FOO=BAR
BAZ=QUX
...
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...
(
Log in to post comments)