- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- two 11.31 boxes, one unusual environment issue...
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
Discussions
Discussions
Forums
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
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-07-2011 01:08 PM
тАО04-07-2011 01:08 PM
two 11.31 boxes, one unusual environment issue...
unixID> cd /$EDI_TOP/$1
[/apps/finapps/custom/edi/1.0]-tphr12
unixID>
On the other, I can't:
unixID> cd /$EDI_TOP/$1
ksh: 1: parameter not set
[/tmp]-tphtr12
unixID>
Seems like one box ignores $1 (if it doesn't exist), while the other complains when isn't passed :(
any ideas?
thanks,
manny
- Tags:
- ksh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-07-2011 01:24 PM
тАО04-07-2011 01:24 PM
Re: two 11.31 boxes, one unusual environment issue...
set -u
you get the parm. not set
set +u
no issues :)
now just need to identify where this "set" is being set...
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-07-2011 01:30 PM
тАО04-07-2011 01:30 PM
Re: two 11.31 boxes, one unusual environment issue...
Please provide the output to command
alias
from both systems, separately, so that we can figure out if such an alias exists.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-10-2011 10:52 AM
тАО04-10-2011 10:52 AM
Re: two 11.31 boxes, one unusual environment issue...
>now just need to identify where this "set" is being set.
Are you in a script or at the command prompt?
Typically you would rarely use $1 at the command prompt.
Look for "set -u" in .profile or in any .kshrc files. Or "-u" on your #! line at the top of your scripts.
Also look for "set nounset".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-11-2011 03:10 AM
тАО04-11-2011 03:10 AM
Re: two 11.31 boxes, one unusual environment issue...
you can issue a "set -o" at the command prompt on each server and compare the results. This will tell you what features are turned on/off on your (ksh) shell.
Regards,
Viktor
Unix operates with beer.