LWN.net Logo

Incompatibility

Incompatibility

Posted May 20, 2005 15:05 UTC (Fri) by markc (guest, #4419)
In reply to: Incompatibility by liljencrantz
Parent article: Fish - The friendly interactive shell

Perhaps if you wrote a "fishify" inbuilt function or program to covert
bash'isms to fish'isms then folks could adopt fish on top of established
bash scripts.

I could find myself using fish instead of bash but every time I went to
write something that might be widely distributed I'd probably always stick
to bash, unless there was a reliable way to ensure that a fish script
would still work under most circumstance and play well with establish bash
scripts (like rc startup scripts for instance).


(Log in to post comments)

Incompatibility

Posted May 21, 2005 10:26 UTC (Sat) by liljencrantz (subscriber, #28458) [Link]

The languages are close enough that this should be possible. Back in college, I wrote a Pascal to C converter for a syntax course, this should actually be easier. Of course, that converter ignored tricky bits like records and pointers, and it was never widely tested...

Copyright © 2012, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds