core/tsrc/fshell-basic-test.script
changeset 66 2a78c4ff2eab
parent 51 3ad902ef5222
equal deleted inserted replaced
63:6a2083f7eeb8 66:2a78c4ff2eab
   105 var OK defined || $Error
   105 var OK defined || $Error
   106 export OK
   106 export OK
   107 
   107 
   108 export FILE c:\fshell-basic-test.txt
   108 export FILE c:\fshell-basic-test.txt
   109 rm $FILE 2>/dev/null &| echo -n "" # I don't like using "&| echo" syntax to indicate don't care if it fails. Probably rm -f should be quiet like unix version
   109 rm $FILE 2>/dev/null &| echo -n "" # I don't like using "&| echo" syntax to indicate don't care if it fails. Probably rm -f should be quiet like unix version
       
   110 exists $FILE && $Error
   110 echo -n "Testing file redirection" > c:\fshell-basic-test.txt
   111 echo -n "Testing file redirection" > c:\fshell-basic-test.txt
       
   112 exists $FILE || $Error
   111 
   113 
   112 # The redirect stdin operation doesn't get used much
   114 # The redirect stdin operation doesn't get used much
   113 export -s FILECONTENTS < $FILE
   115 export -s FILECONTENTS < $FILE
   114 var FILECONTENTS == "Testing file redirection" || $Error
   116 var FILECONTENTS == "Testing file redirection" || $Error
   115 
   117