Sponsored link Serve your customers, not your servers, with VERIO Linux VPS. Full-access test-drive here. |
IncompatibilityIncompatibilityPosted 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
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)
|
Copyright © 2008, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds
Powered by Rackspace Managed Hosting.