- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ==: A test command parameter is not valid
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
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
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
02-12-2013 08:49 AM
02-12-2013 08:49 AM
==: A test command parameter is not valid
hi all
im getting this in a script from a vendor, they re looking into it.
in the meantime i was curious, what does that error means if the
script is checking for the OS:
if [ "`uname`" == "OS400" ]
then
it sees that its hp-ux but then gets the error mssg in the subject
thx in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2013 09:57 AM
02-12-2013 09:57 AM
Re: ==: A test command parameter is not valid
What shell (if any) is referenced at the start of the script?
e.g.
#!/usr/bin/sh
#!/usr/bin/ksh
#!/usr/bin/csh
#!/usr/local/bin/bash
Which on HP-UX at least would be the POSIX shell, Korn shell, C Shell or GNU bash shell (if installed)
The [ xxx == yyy ] construct is bash shell syntax if I recall corerctly... if the vendor is trying to be portable, one would imagine he would use POSIX standards, which implies using:
if [ "`uname`" = "OS400" ]
which has the advantage of working in POSIX, Korn and bash shells...
I am an HPE Employee