Operating System - HP-UX
1840000 Members
3280 Online
110158 Solutions
New Discussion

HP-UX equivalent of ShellCheck

 
TheJuiceman
Super Advisor

HP-UX equivalent of ShellCheck

Hello everyone,

I am looking for a compiled equivalent of ShellCheck for HP-UX 11.31 IA.  I am needing something to determine if a script is compliant with a particular shell.

TYIA

8 REPLIES 8
Steven Schweda
Honored Contributor

Re: HP-UX equivalent of ShellCheck

> I am looking for a compiled equivalent of ShellCheck for HP-UX 11.31
> IA. [...]

   I'd never heard of it, but I don't get out much.

   Is it unavailable from the Porting and Archive Centre?  Can it not be
built from source on your HP-UX system?

> [...] I am needing something to determine if a script is compliant
> with a particular shell.

   Which "a particular shell"?

shiva_jr
HPE Pro

Re: HP-UX equivalent of ShellCheck

Hi @TheJuiceman , 
    I believe, ShellCheck will work with Linux and MacOS but not with HP-UX.
    I read that the Nickel collection tool works well with HP-UX. Please refer this post.
    I am not sure, even Bourne Shell Script works with HP-UX. Please search more on these two.

Regards,
Shiva_jr



I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
support_s
System Recommended

Query: HP-UX equivalent of ShellCheck

System recommended content:

1. HP-UX Reference (11i v1 00/12) - 1 User Commands A-M (vol 1)

2. Node and Host Name Sizes on HP-UX: Using the Expanded Capabilities of HP-UX

 

Please click on "Thumbs Up/Kudo" icon to give a "Kudo".

 

Thank you for being a HPE valuable community member.


Accept or Kudo

TheJuiceman
Super Advisor

Re: HP-UX equivalent of ShellCheck

Hi Steven,

It is not on the Porting and Archive Center site and I have not found an equivalent there.  Specifically, I'm looking to check a long list of scripts for Korn and POSIX shell  "compliance".   I have multiple scripts that have an improper or missing shebang line and want to check for inconsistancies and look at conforming very old scripts to newer standards that are more cross-platform compatible.

Thanks

TheJuiceman
Super Advisor

Re: HP-UX equivalent of ShellCheck

Hi Shiva,

I do not believe Nickel will accomplish what I am looking to do.

Thanks

TheJuiceman
Super Advisor

Re: Query: HP-UX equivalent of ShellCheck

I'm looking for something that will analyze a shell script structure.  Thanks

Steven Schweda
Honored Contributor

Re: HP-UX equivalent of ShellCheck

> It is not on the Porting and Archive Center site [...]

   Ok.  I didn't see it there when I looked, either.

> [...] Can it not be built from source on your HP-UX system?

   Still wondering.  I'm too busy/lazy to try it, but you'd seem to have
a greater incentive than I.

   Or, if you think that it would solve your problem, then find some
other system where it is available, and transport your scripts to that
system for testing?


> I do not believe Nickel will accomplish what I am looking to do.

   That was certainly the impression I got.

TheJuiceman
Super Advisor

Re: HP-UX equivalent of ShellCheck

Yep.  That's what I've been doing so far, but it would be nice to be able to do it on the native machine