Posted Jan 27, 2011 13:45 UTC (Thu) by HelloWorld
In reply to: Shell metacharacters
Parent article: Domsch: Consistent Network Device Naming coming to Fedora 15
That probably depends on your definition of portability. While it is theoretically possible to write bourne shell scripts that work on many platforms, almost nobody does because it's just too hard due to all kinds of differences both in the shell implementations and the tools that are available. Larry Wall was right when he said
It is easier to port a shell than a shell script.
So, if you want to write a portable script, use perl. If your unix system doesn't have perl, it's dead anyway. And while perl isn't the be-all and end-all of scripting languages, it is a huge improvement over bourne style shells.
to post comments)