commands/clipboard/clipboard.cif
changeset 66 2a78c4ff2eab
parent 0 7f656887cf89
equal deleted inserted replaced
63:6a2083f7eeb8 66:2a78c4ff2eab
    22 
    22 
    23 ==option bool s stdin
    23 ==option bool s stdin
    24 
    24 
    25 Read the text from C<stdin> instead of from the command line.
    25 Read the text from C<stdin> instead of from the command line.
    26 
    26 
       
    27 ==smoke-test
       
    28 
       
    29 clipboard "Test data"
       
    30 clipboard | export -s RESULT
       
    31 var RESULT == "Test data" || $Error
       
    32 
       
    33 echo "$RESULT" | clipboard --stdin
       
    34 clipboard | export -s RES2
       
    35 var RES2 == "Test data^r^n" || $Error
       
    36 
    27 ==copyright
    37 ==copyright
    28 
    38 
    29 Copyright (c) 2008-2010 Accenture. All rights reserved.
    39 Copyright (c) 2008-2010 Accenture. All rights reserved.
    30