David Haller
Hello,
On Sat, 24 Aug 2013, dieter wrote:
Am Fri, 23 Aug 2013 10:19:47 +0200 schrieb Joerg Schilling:
But maybe, you like to have a look at /usr/share/mc/extfs.d/README and implement a wrapper to star. Star is a good choice as it supports many different archive types.
I have opened bnc#836558
There I have also attached a simple extfs "untar" using the installed tar (possibly also star - but I did not test this, and if it requires different commands or options it wont work)
Thanks. But you're not calling tar posixly correct (e.g. '$TAR xaOf', that should probably be '"$TAR" -x -a -f '.
$ star xaOf star: Illegal option 'a' for compat mode.
So, your script will fail if "$TAR" is 'star'.
It will also fail with plain vanilla "tar" - it will not even work with gtar because neither tar nor gtar support an option "a". Star will list access time with -a, do you really like this? OK let us make a list: $TAR tvaf "$1" will not work for "a" $TAR raf "$1" "$2" will not work for "a" $TAR xaOf "$1" "$2" > "$3" will not work for "a" and AND "O" $TAR raf "$1" "$2" >/dev/null will not work for "a" $TAR --delete -af "$1" "$2" >/dev/null will not work for --delete and "a" "which" is a csh script and does not interact nicely with a Bourne Shell If you fix the options, you will fail at other places: --- Make sure that you will not assume that you may extend compresed archives mctarfs_list makes illegal assumptions on the list output gtar lists completely non-standard and non-reliable as it's list output was frequently changed across versions "tar" lists in a historic way that was never standardized star when used with -pax-ls will list in the way that was standardized for POSIX pax. mctarfs_copyin Be careful, this _appends_ a second copy of a file to an archive. mctarfs_rm --delete is not doable in-place with tar archives if you implement a FIFO for efficient archive handling. but this is gtar only anyway .... Note that appending to a tar archive will even work with real tapes, but removing things from an archive cannot be done on tapes. Jörg -- EMail:joerg@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin js@cs.tu-berlin.de (uni) joerg.schilling@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org