Groups | Search | Server Info | Keyboard shortcuts | Login | Register


Groups > gnu.utils.bug > #2282

Re: shar

From Bob Proulx <bob@proulx.com>
Newsgroups gnu.utils.bug
Subject Re: shar
Date 2020-03-20 19:00 -0600
Message-ID <mailman.212.1584752453.3020.bug-gnu-utils@gnu.org> (permalink)
References <BY5PR16MB3240F83B2CA04DD1D99F645B84FA0@BY5PR16MB3240.namprd16.prod.outlook.com> <20200320184258524569738@bob.proulx.com>

Show all headers | View raw


Ben White wrote:
> Mail to bug-gnu-utils@gnu.org<mailto:bug-gnu-utils@gnu.org>

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:  <bug-gnu-utils@gnu.org>

Bob

Back to gnu.utils.bug | Previous | Next | Find similar


Thread

Re: shar Bob Proulx <bob@proulx.com> - 2020-03-20 19:00 -0600

csiph-web