"Shell like words"

shell EXTENSIONS #ifdef PFE_HAVE_PID
* $PID ( -- pid )

calls system's getpid

EXTENSIONS shell ordinary primitive

$$

[] no special info, see general notes

EXTENSIONS shell obsolete forthword

#endif #ifdef PFE_HAVE_UID
* $UID ( -- val )

calls system's getuid

EXTENSIONS shell ordinary primitive

* $EUID ( -- val )

calls system's geteuid

EXTENSIONS shell ordinary primitive

#endif #ifdef PFE_HAVE_GID
* $GID ( -- val )

calls system's getgid

EXTENSIONS shell ordinary primitive

#endif #ifdef PFE_HAVE_UMASK
* UMASK ( val -- ret )

calls system's umask

EXTENSIONS shell ordinary primitive

#endif
* $HOME ( -- str-ptr str-len )

calls system's getenv(HOME)

EXTENSIONS shell ordinary primitive

* $USER ( -- str-ptr str-len )

calls system's getenv(USER)

EXTENSIONS shell ordinary primitive

* $CWD ( -- str-ptr str-len )

calls system's getcwd

EXTENSIONS shell ordinary primitive

* PWD ( -- )

calls system's getcwd and prints it to the screen
 : PWD  $CWD TYPE ;

EXTENSIONS shell ordinary primitive

* mimics a unix'ish shell-command - PARSEs one filename/dirname
    RM

[] no special info, see general notes

EXTENSIONS shell compiling primitive

TOUCH

[] no special info, see general notes

EXTENSIONS shell compiling primitive

* CHDIR ( bstring -- )

change the current directory.

(under VxWorks it is global! do not use in scripts!!)

EXTENSIONS shell ordinary primitive

CD

[] no special info, see general notes

EXTENSIONS shell obsolete forthword

RMDIR

[] no special info, see general notes

EXTENSIONS shell compiling primitive

MKDIR

[] no special info, see general notes

EXTENSIONS shell compiling primitive

#ifdef PFE_HAVE_LINK /** mimics a unix'ish shell-command -
PARSEs two filenames/dirnames */ LN

[] no special info, see general notes

EXTENSIONS shell compiling primitive

#endif /* PFE_HAVE_LINK */ #ifndef NO_SYSTEM /** will invoke a shell-command with the command and a two filenames */
MV

[] no special info, see general notes

EXTENSIONS shell compiling primitive

#endif #ifdef GOT_DIR /** mimics a unix'ish shell-command -
PARSEs one filename/dirname */ LL

[] no special info, see general notes

EXTENSIONS shell compiling primitive

LS

[] no special info, see general notes

EXTENSIONS shell compiling primitive

#endif /* NO_SYSTEM */ /** mimics a unix'ish shell-command -
PARSEs two filenames/dirname */
CP

[] no special info, see general notes

EXTENSIONS shell compiling primitive