Is the shell: command portable?

Is it recommended to use shell :null command on supposedly portable scripts? Does it handle csh, zsh, tcsh and any shell that may exist there?

+5
source share
2 answers

Yes. This is the standard zero utility. Link: http://pubs.opengroup.org/onlinepubs/000095399/utilities/colon.html

+8
source

, : Thompson shell - it Unix V6 1975 . , , PATH, stderr 2> cd ( chdir).

: goto. goto , , . Bourne shell, Bourne/POSIX, , goto, , : no-op ( Unix V7).

0

All Articles