From: Rob Wilson <rawilson () subcorp ! com ! au>
To: tru64-unix-managers
Subject: Ksh problem.
Date: Mon, 28 Sep 1998 01:17:17 +0000 [thread overview]
Message-ID: <96078721912129.tru64-unix-managers.marc@archive.invalid> (raw)
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
reply other threads:[~1998-09-28 1:17 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox