|
|
|
|
|
by qudat
30 days ago
|
|
> My main point is that following the spec doesn't guarantee shell scripts will be portable, which is a common misconception. That feels like a failure in the spec. Your example illustrates it: echo has unspecified behavior that literally prevents it from being portable. Is it possible portability is just not a feature of posix? |
|
POSIX doesn't guarantee portability. POSIX only guarantees that the things it specifies will work in a POSIX-compliant environment. POSIX makes no guarantees about portability to non-POSIX-compliant environments like Windows' shells or MSVC, the Fish shell, etc. POSIX makes no guarantees about the things it doesn't specify.