Pick a Free OS

User login

Navigation

Writing portable shell scripts

Shell scripts are a popular choice for writing small

programs that do file manipulation. They are generally portable across platforms, but there are a number of things that can make a shell script work fine on one machine and fail on another. This article reviews some of the issues shell programmers may run into when trying to write widely portable scripts.