File: 31-space-in-name

package info (click to toggle)
syncmaildir 1.2.5-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,104 kB
  • sloc: ansic: 6,643; sh: 1,780; makefile: 247
file content (19 lines) | stat: -rw-r--r-- 420 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash


msync 1

test_eq Mail target/Mail 

mkdir -p "Mail/very bad/cur"
mkdir "Mail/very bad/new"
mkdir "Mail/very bad/tmp"
cp Mail/cur/`basename $(ls Mail/cur|head -1)` 'Mail/very bad/cur/foo %'
cp Mail/cur/`basename $(ls Mail/cur|head -2)` 'Mail/very bad/cur/foo %11'
sed -i 's/a/z/' 'Mail/very bad/cur/foo %11'
mv Mail/cur/`basename $(ls Mail/cur|head -1)` 'Mail/cur/foo %'

msync 2

test_eq Mail target/Mail