bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-tar] -F script from the docs not working on cygwin?


From: Hugh Sasse
Subject: [Bug-tar] -F script from the docs not working on cygwin?
Date: Thu, 8 Mar 2007 11:12:56 +0000 (WET)

I've just had this failure on cygwin 

address@hidden ~/fresnel
$ tar -c -L$((1024 * 1024 * 3)) -f win_users_split.tar -F ./new_volume 
./win_users.tar.bz2
Preparing volume 2 of win_users_split.tar.
./new_volume: line 12: echo: write error: Broken pipe
  22711 [sig] tar 3812 C:\cygwin\bin\tar.exe: *** fatal error -
adlist_ix -1
Hangup

address@hidden ~/fresnel
$ tar -c --multi-volume -L$((1024 * 1024 * 3)) -f win_users_split.tar -F 
./new_volume ./win_users.tar.bz2
Preparing volume 2 of win_users_split.tar.
      9 [sig] tar 2744 C:\cygwin\bin\tar.exe: *** fatal error -
adlist_ix -1
Hangup

address@hidden ~/fresnel


with the new_volume script as 
address@hidden ~/fresnel
$ cat new_volume
#!/bin/bash
echo Preparing volume $TAR_VOLUME of $TAR_ARCHIVE.

name=`expr $TAR_ARCHIVE : '\(.*\)-.*'`
case $TAR_SUBCOMMAND in
-c)       ;;
-d|-x|-t) test -r ${name:-$TAR_ARCHIVE}-$TAR_VOLUME || exit 1
    ;;
*)        exit 1
esac

echo ${name:-$TAR_ARCHIVE}-$TAR_VOLUME >&3


address@hidden ~/fresnel
$

i.e lifted from the manual, one folded line straightened out and 
when that failed changed from /bin/sh to /bin/bash

It always fails on that last echo statement.  Should I expect this on 
cygwin?  

(for now I've solved the problem with

$ tar -c --multi-volume -L$((1024 * 1024 * 3)) -f win_users_split1.tar -f 
win_users_split2.tar -f win_users_split3.tar -f win_users_split4.tar 
./win_users.tar.bz2

so I don't need a workaround at the moment. I'm interested in whther this
is a known problem or not.)

address@hidden ~/fresnel
$ tar --version
tar (GNU tar) 1.16.1
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software.  You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.

address@hidden ~/fresnel
$ bash --version
GNU bash, version 3.2.9(11)-release (i686-pc-cygwin)
Copyright (C) 2005 Free Software Foundation, Inc.

address@hidden ~/fresnel
$

        Thank you,
        Hugh




reply via email to

[Prev in Thread] Current Thread [Next in Thread]