"Fossies" - the Fresh Open Source Software Archive

Member "CSSC-1.4.1/tests/delta/n-option.sh" (29 Apr 2010, 563 Bytes) of package /linux/privat/CSSC-1.4.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #! /bin/sh
    2 # n-option.sh:  Testing for the -n option of "delta"
    3 
    4 # Import common functions & definitions.
    5 . ../common/test-common
    6 
    7 g=foo
    8 s=s.$g
    9 
   10 remove $s $g p.$g z.$g
   11 
   12 
   13 # Create an SCCS file.
   14 docommand d1 "${admin} -n $s"    0 "" IGNORE
   15 
   16 # Check the file out for editing.
   17 docommand d2 "${get} -e $s"      0 IGNORE IGNORE
   18 
   19 # Check the file back in with delta, using the -n option.
   20 docommand d3 "${vg_delta} -n -y $s" 0 IGNORE IGNORE
   21 
   22 # Make sure the g-file hasn't been deleted, and is still writable.
   23 docommand d4 "test -w $g" 0 "" IGNORE
   24 
   25 
   26 
   27 remove $s $g
   28 success