Specific challenges faced while migrating shell scripts from Solaris 10 to RHEL 7.5
-1
votes
1
answer
1200
views
# Source environment:
$ uname -a
SunOS machine1 5.10 Generic_150400-63 sun4u sparc SUNW,SPARC-Enterprise
$ pwd
/
$ ls -l /bin/sh
lrwxrwxrwx 1 root root 13 Nov 1 19:39 /bin/sh -> ../../sbin/sh
# Target environment:
$ pwd
/root
$ ls -l /bin/sh
lrwxrwxrwx. 1 root root 4 Jul 16 12:10 /bin/sh -> bash
$ cat /etc/system-release
Red Hat Enterprise Linux Server release 7.5 (Maipo)
In target environment, we use shebang line
#!/bin/sh
in every script
----------------------------------------------------
Shell scripts in solaris environment are using shebang line #!/usr/bin/ksh
and #!/bin/sh
Goal is to migrate shell scripts from Solaris 10 to RHEL 7.5
-----------------------------------------------------
1) Are scripts written solaris korn shell & /bin/sh
shell, [posix compliant](http://pubs.opengroup.org/onlinepubs/9699919799/nfindex.html) ? for seamless migration to bash(in Linux) without verification of code..
2) If no, What are the verifications required before migrating scripts to Linux?
Asked by overexchange
(1596 rep)
Nov 14, 2018, 03:03 AM
Last activity: Jul 17, 2025, 12:36 AM
Last activity: Jul 17, 2025, 12:36 AM