- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Using arrays in DC
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2005 03:12 AM
04-04-2005 03:12 AM
I discovered that dc (desk calculator) can handle arrays. The only line about this in dc manual pages is:
; and : Used by bc for array operations.
I found some webpages where discuss how to specify the index in the array of a register but I cannot understand how array operations interacts with stack operations. In fact, some examples given in those other manual pages, result in core dump. For example, the manual pages of dc in cygwin:
Note that each stacked instance of a register has its own array associated with it. Thus 1 0:a 0Sa 2 0:a La 0;ap
will print 1, because the 2 was stored in an instance of 0:a that was later popped.
But this line makes dc crashes in HP-UX as well as Solaris.
Solved! Go to Solution.
- Tags:
- DC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2005 02:23 AM
04-05-2005 02:23 AM
Solution1
Doesn't core dump on a B1000 HP-UX 11.11,
what version of dc are you using?
$ what /usr/bin/dc
/usr/bin/dc:
dc.c $Date: 2002/11/24 22:33:53 $Revision: r11.11/1 PATCH_11.11 (PHCO_27944)
$Revision: @(#) all CUP11.11_BL2003_0603_1 PATCH_11.11 PHCO_27944
Tue Jun 3 02:35:25 PDT 2003 $
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2005 09:42 PM
04-05-2005 09:42 PM
Re: Using arrays in DC
/usr/bin/dc:
$Revision: B.11.11_LR
Fri Oct 27 00:30:16 PDT 2000 $
It's not patched.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2005 11:26 PM
04-05-2005 11:26 PM
Re: Using arrays in DC
on the HP site, but it won't show me any details. I didn't specifically pacth ds, it must have been done as part of a general patch bundle.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2005 12:43 AM
04-06-2005 12:43 AM
Re: Using arrays in DC
I-m going to install it as soon as possible.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2005 01:08 AM
04-06-2005 01:08 AM