load "shell"
cout << "pwd = " << getcwd()<< endl;// add version 4.9.1
Directory  c=".";
string ttoto="/tmp/toto";
string TMP="/tmp";
string sep="/";
if (onWIN32) {  // modif FH 2/07/25 
	ttoto="C:\\Temp\toto";
    TMP="C:\\Temp";
	sep="\\";
}
while(1)
{
	string n=readdir(c);
	if( n != "") 
	  cout << n << " " << isdir(n) << endl; 
	else break; 
}

cout << " login " << getenv("LOGIN") << endl;
setenv("FF_TOTO","toto");
cout << " FF_TOTO  " << getenv("FF_TOTO") << endl;
string pwd=getenv("PWD");
verbosity=3;
cout << " FILE: " <<FILE << endl;
cpfile(FILE,TMP);
cout << "basename " << basename(pwd) << endl; 
cout << "dirname " << dirname(pwd) << endl; 
cout << isdir(ttoto) << endl; 
if (isdir(ttoto)<0 )
{
	cout << "mkdir"  << " " << ttoto << endl; 
if  (mkdir(ttoto)==0)
{
	cout << " ls : " ;
	Directory dtoto = TMP+sep+"toto";
	while(1)
	{
		string n=readdir(dtoto);
		if( n == "") break;
		cout <<  n << " "; 
	}
	cout << endl; 
	cout << " rmdir /tmp/toto" << endl; 
   rmdir("/tmp/toto");//  dir /tmp/toto must be  empty 
}
}
