![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| problem with uuencode | rjsha1 | Shell Programming and Scripting | 9 | 04-29-2009 08:15 AM |
| PATH on solaris 8 (bash) | recklessop | Shell Programming and Scripting | 1 | 03-27-2008 10:56 PM |
| Solaris 8 installed but bash is not working | bluridge | SUN Solaris | 2 | 01-24-2008 05:03 PM |
| Problem with uuencode | markms | Shell Programming and Scripting | 0 | 04-07-2006 12:13 PM |
| uuencode | tejasingaraju17 | Shell Programming and Scripting | 2 | 11-20-2005 02:01 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
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" |
|
||||
|
Don't use backticks and echo; those are the ones which will mess you up, not the actual uuencode. Both of those steps involve some amount of whitespace normalization and parsing of the strings you are handling there, whereas straight uuencode - | uudecode - would not involve any string handling by the shell itself.
|
|
||||
|
As it turns out the shell was interpreting escape characters.
|
| Sponsored Links | ||
|
|