l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2011 Jan 18 18:50

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] Ubuntu 10.04 LTS upgrade woes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] Ubuntu 10.04 LTS upgrade woes

On 01/18/2011 03:43 PM, Brian Lavender wrote:
> tar cf dotfiles.tar .[!.]* || exit 2

I agreed with most of Brian's post, but the above seems unnecessarily complex 
and useless.  My best guess is that someone is paranoid, doesn't understand 
that ".." is a special case, or maybe it's portable to some broken version of 
tar like solaris's.

To demonstrate:
bill@kona:~/tmp/t2$ tar cvzf ../t1.tar .[!.]*
bill@kona:~/tmp/t2$ tar cvzf ../t2.tar .

No protecting against ".." necessary.  Nor would ~/..foo be accidentally
excluded (unlikely but legal).  Nor am I sure what || exit 2 is supposed to 
do.  Well I know about return values... but why?

Does anyone know of a Linux tar that doesn't behave like the above?

Sure I might be more paranoid with rm -r .* (which is similarly protected). 
Certainly people are free to make their own choices, I just wanted to point 
out that the extra complexity doesn't seem to do anything useful... at least 
under linux.

vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
O'Reilly and Associates
For numerous book donations.