tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Ksh problem.
@ 1998-09-28  1:17 Rob Wilson
  0 siblings, 0 replies; only message in thread
From: Rob Wilson @ 1998-09-28  1:17 UTC (permalink / raw)
  To: tru64-unix-managers

Another question for you guys and gals...

The following scripts/files produce different results when run under sh =
and ksh. Do you have any ideas on how to make the ksh script work?

We are running DU4.0B with Parch Kit0008.

Cheers
Rob Wilson
Australian Submarine Corporation



File q
------
ASCE_ONLINE
FIN_ONLINE
MRP_BATCH
MRP_ONLINE
MRP_PROD
PICK_ONLINE
WRKORD_ONLINE
cscs_dev
cscs_long
cscs_monthly
cscs_short
ddds_adhoc_ZS
ddds_batch_ZL
ddds_xmtil_ZS
default
general_00MSM
general_PAL
general_PAS
sims_xfer_00XLM
single_DAL
single_DAS
single_PAL
single_PAS
tcs_PAS

---------------
file z (shell is changed from sh to ksh to produce problems)
------

#!/bin/sh                (or #!/bin/ksh)

cat q | awk '{print $1}'

echo ------
doobey=3D`head q`
echo ${doobey}
echo ------
for i in ${doobey}
do
    echo Im here
done
echo ------

------------

Output with sh
--------------

ASCE_ONLINE
FIN_ONLINE
MRP_BATCH
MRP_ONLINE
MRP_PROD
PICK_ONLINE
WRKORD_ONLINE
cscs_dev
cscs_long
cscs_monthly
cscs_short
ddds_adhoc_ZS
ddds_batch_ZL
ddds_xmtil_ZS
default
general_00MSM                                                             =
     
general_PAL
general_PAS
sims_xfer_00XLM
single_DAL
single_DAS
single_PAL
single_PAS
tcs_PAS
------
ASCE_ONLINE FIN_ONLINE MRP_BATCH MRP_ONLINE MRP_PROD PICK_ONLINE =
WRKORD_ONLINE c
scs_dev cscs_long cscs_monthly
------
Im here
Im here
Im here
Im here
Im here
Im here
Im here
Im here
Im here
Im here
------


Output with ksh
----------------

^[]2;^G^[]2;^GASCE_ONLINE
FIN_ONLINE
MRP_BATCH
MRP_ONLINE
MRP_PROD
PICK_ONLINE
WRKORD_ONLINE
cscs_dev
cscs_long
cscs_monthly
cscs_short
ddds_adhoc_ZS
ddds_batch_ZL
ddds_xmtil_ZS
default
general_00MSM
general_PAL
general_PAS
sims_xfer_00XLM
single_DAL
single_DAS
single_PAL
single_PAS
single_PAS
tcs_PAS
^[]2;^G^[]2;^G------
^[]2;^G^[]2;^G^[]2;^G^[]2;^G
^[]2;^G------
^[]2;^G------
^[]2;^G

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-09-28  1:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-09-28  1:17 Ksh problem Rob Wilson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox