Files
harbour-core/tests/osshell.prg
Viktor Szakats 3ed9fa0f45 2016-01-14 19:33 UTC+0100 Viktor Szakats (vszakats users.noreply.github.com)
* *
    % remove brandings and homepage from copyright header. Pass 2 - semi-auto.
    * project homepage and name is described in README, amongst others
    ; this should make the diff between 3.4 and 3.2 easier to manage
2016-01-14 19:35:07 +01:00

26 lines
418 B
Plaintext

//NOTEST // It is very frustrating if this one is auto-tested
//
// This program shells to OS
//
// Written by Eddie Runia <eddie@runia.com>
//
// Placed in the public domain
//
PROCEDURE Main()
LOCAL cShell
#if defined( __PLATFORM__UNIX )
cShell := GetEnv( "SHELL" )
#else
cShell := GetEnv( "COMSPEC" )
#endif
? "About to shell to OS.."
! ( cShell )
? "Hey, I am back !"
RETURN