The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 03-31-2008
rein rein is offline
Registered User
  
 

Join Date: Dec 2004
Location: Zürich
Posts: 146
uuencode different in ksh and bash on solaris 8

We're trying to port code from bash to ksh and we run in the following error:

export IFS=""
tempzip=`unzip -p file.zip file | uuencode -`
echo $tempzip | uudecode -

The system is a solaris 8 server. The end result is an error in ksh:

Invalid character (0x...)

In bash it works.

The end results have different byte counts depending on the shell in which the code is executed.

locale's are the same, both "C"