[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: shar produces bad shar file !!!
From: |
Bruce Korb |
Subject: |
Re: shar produces bad shar file !!! |
Date: |
Thu, 25 Oct 2007 15:03:59 -0700 |
User-agent: |
Thunderbird 1.5.0.12 (X11/20060911) |
I stumbled into this problem when scp and sftp were down due to
some firewall changes. So, I ran shar and captured the terminal
output. I will modify "shar" to detect "output" and "stderr" both
going to a terminal and, if true, then reopen stderr to /dev/null.
The spurious line came from an "error" message.
Bruce Korb wrote:
> $ shar --version
> shar - GNU sharutils 4.2.1
>
> Produces this, in part:
>
> # ============= 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.
> Someone tell the sharutils maintainer to fix this. :)
>