File: save.cmd

package info (click to toggle)
pydb 1.26-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 2,460 kB
  • ctags: 1,061
  • sloc: python: 4,200; perl: 2,479; sh: 873; lisp: 866; makefile: 634; ansic: 16
file content (22 lines) | stat: -rw-r--r-- 506 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# $Id: save.cmd,v 1.3 2008/07/03 09:23:07 rockyb Exp $
# Test of running "save" command
#
set basename on
set autoeval on
set trace-commands on
save foo bar
save foo bar baz
save break ./savefile.txt
p len(open('./savefile.txt').readlines())
source ./savefile.txt
break 17
save break ./savefile.txt
source ./savefile.txt
p open('./savefile.txt').readlines()
save settings ./savefile.txt
source -v ./savefile.txt
p len(open('./savefile.txt').readlines())
save all ./savefile.txt
source ./savefile.txt
quit