bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: shar


From: Bob Proulx
Subject: Re: shar
Date: Fri, 20 Mar 2020 19:00:44 -0600

Ben White wrote:
> Mail to address@hidden<mailto:address@hidden>

I am not the maintainer.  But you are at the right place. :-)

> The shar command is uuencoding some of the files in my archive, even
> though I specified -text-files on the command line.  All of the
> files are all .cpp files.  I suspect the reason for this behavior is
> that some files have line length up to 288 characters.

If I intentionally create a file with very long lines I do not
recreate the behavior.  Therefore it is likely something different.

  sh -c 'echo $(seq 1000)' > file1
  wc file1
    1 1000 3893 file1
  ...characters out to 3893 on one line...
  shar file1 | grep uudecode
  shar: Saving file1 (text)
    sed 's/^X//' << 'SHAR_EOF' | uudecode &&
  ...the file is uuencoded...
  shar --text-files file1 | grep uudecode
  shar: Saving file1 (text)
  ...the file is not uuencoded...

I used an explicit shell so that the large arguments created would not
increase the memory footprint of my command shell with the argument
expansion.  It would do it in the subshell, and then exit.

This very long line did not trigger uuencode of the file.  Therefore I
suspect the problem is something different.  I happen to be using shar
version 4.15.2 from Debian with two Debian patches in this test.

> Is there a way to force shar to never uuencode the files ?

As far as I know --text-files is the way.

Could you share with me one of the files that is triggering the
uuencode behavior?  Since I know it is a cpp file, you could email it
to me directly and I won't share it further.

In the meantime, what version of shar are you using?  And what OS you
are running upon?

  $ shar --version
  shar (GNU sharutils) 4.15.2
  Copyright (C) 1994-2015 Free Software Foundation, Inc., all rights reserved.
  This is free software. It is licensed for use, modification and
  redistribution under the terms of the GNU General Public License,
  version 3 or later <http://gnu.org/licenses/gpl.html>

  Please send bug reports to:  <address@hidden>

Bob



reply via email to

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