This is the mail archive of the
mailing list for the Cygwin project.
Problem with embedded spaces in path name for --info-script switch in tar
- From: "Brian Liedtke" <liedtke at frii dot com>
- To: <cygwin at cygwin dot com>
- Date: Sun, 9 Jul 2006 12:43:23 -0600
- Subject: Problem with embedded spaces in path name for --info-script switch in tar
I am writing a script to create multi-volume archives using tar. However it
appears that the --info-script switch doesn't handle imbedded spaces in the
In the sample script below, I have hard-encoded the path to verify that was
and not with building the variable with the path name.
export ARCHIVE_NAME=full_`date +%y%m%d`
tar -cv \
-M --info-script="/cygdrive/c/Documents and Settings/Liedtke/My
# End script
tar: and: Warning: Cannot stat: No such file or directory.
tar: Settings/Liedtke/My: Warning: Cannot stat: No such file or directory.
tar: Documents/Tasks/Backup/rename.sh: Warning: Cannot stat: No such file or
I've devised a workaround by copying the script to the PWD previous to the
tar command and then
deleting it. But it should work as above, correct?
I've searched for the problem on the web and found nothing. Am I missing
obvious, or is this switch not handling embedded spaces in the path name
(Thank you Microsoft.)
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html