core/builtins/touch.cif
changeset 66 2a78c4ff2eab
parent 0 7f656887cf89
equal deleted inserted replaced
63:6a2083f7eeb8 66:2a78c4ff2eab
    22 
    22 
    23 ==argument filename file
    23 ==argument filename file
    24 
    24 
    25 The file to touch.
    25 The file to touch.
    26 
    26 
    27 
       
    28 
       
    29 ==copyright
    27 ==copyright
    30 
    28 
    31 Copyright (c) 2006-2010 Accenture. All rights reserved.
    29 Copyright (c) 2006-2010 Accenture. All rights reserved.
    32 
    30 
       
    31 ==smoke-test
       
    32 
       
    33 date --timestamp | export -s TIMESTAMP
       
    34 export TEMPFILE temp$TIMESTAMP
       
    35 exists $TEMPFILE && $Error
       
    36 touch $TEMPFILE
       
    37 exists $TEMPFILE || $Error
       
    38 rm $TEMPFILE