bug-coreutils
[Top][All Lists]
Advanced

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

Re: shar produces bad shar file !!!


From: Bob Proulx
Subject: Re: shar produces bad shar file !!!
Date: Thu, 25 Oct 2007 13:35:14 -0600
User-agent: Mutt/1.5.13 (2006-08-11)

Please direct followup postings to bug-gnu-utils.  Thanks!

Hi Bruce!

Bruce Korb wrote:
> $ shar --version
> shar - GNU sharutils 4.2.1
> 
> Produces this, in part:

What was the test case that produced that result?  I tried it on my
system and got something different.

> # ============= cs-code.tbz ==============
> if test -f 'cs-code.tbz' && test "$first_param" != -c; then
>   $echo 'x -' SKIPPING 'cs-code.tbz' '(file already exists)'
> else
> shar: Saving cs-code.tbz (binary)
>   $echo 'x -' extracting 'cs-code.tbz' '(binary)'
>   sed 's/^X//' << 'SHAR_EOF' | uudecode &&
> 
> The line after the 'else' does not work so well.

But surely that message was printed to stderr?  How did it end up in
the payload?

  $ echo > cs-code.tbz

  $ shar cs-code.tbz > cs-code.tbz.shar
  shar: Saving cs-code.tbz (text)

  $ grep Saving cs-code.tbz.shar ; echo $?
  1

It looks okay to me.  (shrug)

> Someone tell the sharutils maintainer to fix this.  :)

Very funny!  :-)

Bob




reply via email to

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