Shell compatibility with Linux Bash

Hello,
I'm creating a complex shell script under Linux and I want it to be compatible with Solaris. The script will need to be source executed and hence does not use a "shebang" to specify the shell to be used.
I do not have Solaris available, but hope someone here could answer me a few questions:
What is the default command shell under Solaris, e.g. ksh, bash, solaris sh?
What shell is most commonly used?
I found the following link: http://linux.softpedia.com/get/System/Shells/Heirloom-Bourne-Shell-3043.shtml. It provides a portable variant of the traditional Unix shell. It has been derived from OpenSolaris code and thus implements the SVR4/SVID3 level of the shell. I'm not sure if this is good to test my script for Solaris compatibility, but it complied fine under RHEL 5.6.
So far I noticed the following compatibility issues:
$(...) command substitution does not work and I had to replace it with backquotes.
There is apparently no alias or unalias command. Is this correct?
The shell does not support variable arrays .e.g var[1]. Is this correct?
Thanks!
Update: I just found: http://www.softpanorama.org/Scripting/Shellorama/bash.shtml
Apparently Bash is default in Solaris. Is this correct?

Thank you very much for the replies. I installed Solaris 10 yesterday evening under Virtualbox and performed some tests using the default shell.
From what I can figure out, the /sbin/sh shell is default, at least for root. There are several differences from Bash:
The C and Korn shell like the variable array [] syntax, but Solaris borne shell doesn't. I will need to find a way around it.
I notice that echo -n to supress newline is not available, but echo "\c" works.
The alias and unalias commands are available, but I wonder how to make them work. I tried alias ll='ls -l' and unalias r, but it has no effect. Any ideas?
Unfortunately my script is going to set aliases and environment variables for the currently running shell, so I cannot use shebang and need to source execute the script. I wonder though, whether I should bother to support the default Solaris shell and simply make ksh or bash a requirement. Any comments are welcome.

Similar Messages

  • Lenovo Wireless Headset W770 compatibility with Linux and Mac

    Hi,  
    Can someone provide me information on Lenovo Wireless Headset W770 compatibility with Linux and Mac distributions.  On the product overview page under Software Requirements, only Windows is mentioned.  http://support.lenovo.com/en_US/downloads/detail.page?submit=true&componentID=1343112653906&DocID=PD...
    Please let me know if the headset can work with other distributions as well. 
    Thanks & Regards,
    Keya
    Solved!
    Go to Solution.

    I just received W770 and tried it on a PC and it worked. But when I plug the USB receiver in a macbook air (2011 MAC OS 10.6.8), it didn't work. The message I got is that MAC can't recognize the "keyboard" and asked me to press the shift button on the unrecognized keyboard- which I guess meant that the MAC treated the USB dongle as if it were a wireless keyboard of some sort. Anyway, would appreciate it if you could let me know how to make it work on MAC. The previous statement saying that it would work on any Lenovo machine regardless of OS is kinda of unclear - do you mean that it would also work on lenovo running MAC OS (is there any Lenovo running Mac OS?). Thanks.

  • 5th generation iPod nano compatibility with Linux?

    I have Linux on my computer is the 5th generation iPod nano compatible with my operating system? Would i need to install a particular program to make it work.

    trailman00 wrote:
    Why not let the customer choose to use iTunes or not ?
    Be able to add individual files just by copying them from any computer (any OS, with or without iTunes installed), and use a filesystem browser on the iPod to select which file to play in which directory.
    Only Apple would know the answer to this. However, based on the history of the iPod, it seems unlikely that you're going to see this happen. One of the major differentiating features of the iPod is that one doesn't have to mess with a file system browser, it's all handled automatically by iTunes. Now, that's not to say that everyone is going to like players that work this way. Hence, the continuing market for other brands of players.
    Please, release a new iPod firmware supporting this feature.
    Again, seems very unlikely as it runs counter to the entire Apple design philosophy. However, if you want to make your feelings known to Apple (as opposed to just the fellow users who are going to be seeing this post), submit your feedback here:
    http://www.apple.com/feedback/ipodnano.html
    Best of luck.

  • Mac Pro compatibility with linux 64x / visa 64x

    I purchased a Mac Pro for the power because I am an Architecture graduate student and I spend a lot of time modeling and rendering large and complex structures. Sadly, Maya, which I use a lot is only scripted for 32x on the Mac OSX. I have the options of installing 64x edition of Maya in either Linux or Windows. My question is which 64x operating system would be most compatible with my mac pro? I have five hard drives so its not a big deal to me where the OS goes as long as it will allow me to make the most use out of the system. My hope is that AutoDesk will get on the ball and release a 64x OSX edition of Maya but in the mean time I'm going to have to use an alternate OS... I'm also hoping the next addition of the mac OSX will integrate GPGPUs so that I can drop in another video card to bump up its processing power but that might be too much wishful thinking.

    Well, a more powerful Mac Pro should come out sometime in mid-2009.
    Snow 10.6 will probably require 64-bit drivers and updates to any applications, 3rd party controllers, plug-ins and the works.
    http://www.electronista.com/articles/08/10/17/nvidia.quadro.cx.for.cs4/
    http://www.macrumors.com/2008/06/15/snow-leopards-grand-central-and-opencl-detai ls/
    http://techreport.com/discussions.x/16080
    http://www.appleinsider.com/articles/08/10/28/roadto_mac_os_x_snow_leopard_64_bit_to_thekernel.html
    http://www.tomshardware.com/reviews/opengl-directx,2019-7.html
    http://www.barefeats.com/harper19.html
    Unless there is a seachange, and graphics changes quickly while Apple stays a generation behind the curve.

  • Compatibility with Linux RedHat

    Hi All,
    Does anyone have any experience in running JRockit 8.1 under recent versions of
    RedHat Linux 8 or 9? I'm getting incompatibility errors (SO libraries, for example
    pthread.so) right away after trying to start JRockit 8.1. I found a workaround
    with alternavive /lib but this doesn't seem to be a good option. Besides, JVM
    crashes every now and then. Is there any JRockit relerase compatible with RH9
    at all?
    Thanks,
    Michael
    [email protected]

    Sorry, the only RedHat version that JRockit officially supports and is
    certified with is RedHat Advanced Server 2.1. JRockit might work well
    with other RedHat versions but there are no guarantees.
    /Helena
    Michael Pastushkov wrote:
    Hi All,
    Does anyone have any experience in running JRockit 8.1 under recent versions of
    RedHat Linux 8 or 9? I'm getting incompatibility errors (SO libraries, for example
    pthread.so) right away after trying to start JRockit 8.1. I found a workaround
    with alternavive /lib but this doesn't seem to be a good option. Besides, JVM
    crashes every now and then. Is there any JRockit relerase compatible with RH9
    at all?
    Thanks,
    Michael
    [email protected]

  • Applet compatibility with linux and netscape

    Hi guys!
    i currently running my server on linux redhat 7.2 and using Netscape 7.0
    When i run applet, it keep telling me i dun have the plug-in installed, but i had it installed. Can someone enlighten me?!
    i understand tat under windows, java will have a console to run applet ... so when running on netscape there's no problem..
    Any help is gladly apperiacated.... Thankz
    bee

    Maybe the JRE version isn't compatible ??

  • Lion compatibility with adobe cs5 premium suite

    In a nut shell compatibility with adobe cs5 premium suite with lion osx. I have been waiting till all problems are resolved any output on this subject.
    Have iMac i7 core processor 8 gb of ram memory.

    When talking to other humans and asking a question, phrasing your question in, you know, the form of a question is usually best.
    You can get a list of known issues straight from Adobe itself, here:
    http://kb2.adobe.com/cps/905/cpsid_90508.html
    There are also a large number of other discussions of this topic in this forum. Do a search if you would like additional information.

  • Online Radhat linux and sunsolaris shell means with out installation I use

    Hello every one,
    1.can any one tell me how can I use online red-hat Linux shell (means with out installation I use online Linux shell or terminal).
    2. how can I use online sun solaris unix shell (means with out installation I use online sunsolairs shell or terminal).
    Thanks ,
    Regards,
    Shahbaz khan

    Remote access to a Linux/Unix based system is usually accomplished by screen sharing using VNC, or by a remote text based terminal session using ssh and telnet. The use of Telnet is generally considered obsolete and has been replaced by ssh for security reasons. You can also tunnel X-windows through ssh to to run remote X-windows applications on the X-windows server running on your client PC computer.
    The software you need for ssh or VNC will depend on your preference and current client operating system. If you use e.g. Apple MacOS X, you will not need to install any additional software. If you use Windows you can download free Putty for ssh access, or RealVNC client.

  • Satellite M40-129: PCMCIA Card doesn't work with Linux

    I have D-Link DWL-G650 with Atheros Chipset which is good supported under linux (madwifi). But if I boot Linux the card is not found. I tested the card with an Fujitsu Siemens Notebook and it worked out of the box!
    Any idea why it doesn't work with my M40-129 ?

    Hi
    Like you know Toshiba doesnt support the Linux and there are no Toshiba drivers for the Linux OS but I was able to find this useful Toshiba page about the notebook configuration with Linux:
    http://newsletter.toshiba-tro.de/main/
    You should check the OS machine compatibility and the other areas.
    Im sure you will find many useful tips.
    Good luck

  • SQL Server Express compatibility with Windows 8.1 - Which version(s) are compatible?

    We have purchased a new computer that has Win 8.1 Pro. We are migrating an application from a Win 7 Pro machine we are currently successfully using (the vendor migrates it for us) and they have said that the application will require the installation of SQL
    Server 2008 Express (which we do have on our Win 7 machine).
    In looking at the requirements for SQL Server 2008 Express (on the download page for it), it does not mention it being compatible with Win 8.1  
    In addition, Installation Instructions  says that it requires:
     Microsoft .Net Framework 3.5 SP1
     Windows Installer 4.5.
     Windows PowerShell 1.0
    I see that 3.5 is already listed as a program feature of Win8.1 and I've enabled it. Do I need to install SP1? I downloaded it, and launched it, and nothing happened.
    I also looked at the Windows Installer 4.5 download page, and it's not clear if that is compatible with 8.1. Do I need to download and install it?
    Power Shell 2.0 is already installed. I assume that will be backwards compatible with PowerShell 1.0; is that correct?
    I saw another question about SQL Server Express Compatibility with Win 8.1 (http://social.technet.microsoft.com/Forums/windows/en-US/038ec00e-4fc1-41ba-9fdc-21c022aad67e/action?threadDisplayName=sql-server-express-compatibility-with-windows-81) and the response
    said that SQL Server Express 2012 will work, but the link contained in the answer led to a page for SQL Server Express 2014.  
    My vendor has told me that SQL SERver Express 2012 will be backwards compatible with their product. But they said that I would first have to install 2008 first. Is that correct for Win 8.1?
    So, the ultimate questions are:
    1. What is the link for Sql Server 2012 Express for Win 8.1? 
    2. Will the SQL Server 2012 Express download require prior install of the 2008 version
    3. What other component requirements are required for SQL Server 2012 Express, and how can I determine if they have already been installed. (This is a brand new computer with a clean Win8.1 Install).
    4. Finally, can we use the 2014 version of SQL Server Express for Win 8.1? If so, questions 1, 2 and 3 apply, too.
    Thanks for your help on this!! HIGH ANXIETY. 

    Hello,
    The following article provides which updates are required to make SQL Server versions compatible with Windows 8 or 8.1:
    http://support.microsoft.com/kb/2681562/en-us
    1. You can use the product updates feature on SQL Server 2012 to make it compatible with Window 8.1. Apply SP1 as described on the following
    article:
    http://www.sqlcoffee.com/SQLServer2012_0008.htm
    2. No.
    3. Download and install .NET Framework 4.0 and enable .NET Framework 3.5. For more information:
    http://www.sqlcoffee.com/SQLServer2012_0017.htm
    4. Yes, you can use SQL Server 2014 with Windows 8.1. Please refer to the Support article provided above.
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • FAST ESP 5.3 - is the FAST Search API of ESP 5.3 compatable with OS: Red Hat 5.1 & JDK: 1.6 Update 81 ?

    FAST ESP 5.3 - is the FAST Search API of ESP 5.3 compatable with OS: Red Hat 5.1 & JDK: 1.6 Update 81 ?

    Per ESP SP 5 release , below OS are supported which should be compatible with API:
     Red Hat Enterprise Linux Release 5.8, 32-bit (and all 5.x minor versions below)
     Red Hat Enterprise Linux Release 5.8, 64-bit (and all 5.x minor versions below)
     Red Hat Enterprise Linux Release 6.3, 32-bit (and all 6.x minor versions below)
     Red Hat Enterprise Linux Release 6.3, 64-bit (and all 6.x minor versions below)
     SuSE Linux Enterprise Server 11, 64-bit
    The latest JDK i have seen working on a customer install is  jdk1.6.0_45.
    Probably you can try update 81 and see if you run into any issues.

  • LabView 8.2.1 and DAQmx Base with Linux

    Hey,
    we use LabView 8.2.1 here with Linux. Recently the new version of NI-VISA (5.0.0) and DAQmx Base (3.4) were released and work with OpenSuSE 11.2. But there is no integration of DAQmx Base into LabView 8.2.1 in the iso file.
    Is there a possibility to implement that?
    Thanks in advance,
    Alex

    Hello Alex,
    thank you for posting at the National Instruments Forum. It is not possible, to use the latest NI-DAQmx Base Driver 3.4 with LabVIEW 8.2:
    NI-DAQmx Base 3.4 supports
    - LabVIEW 2010
    - LabVIEW 2009
    - LabVIEW 8.6.x and
    - LabVIEW 8.5.x
    If you need LabVIEW 8.2.x support, you have to use NI-DAQmx Base 3.3, this one supports
    - LabVIEW 2009
    - LabVIEW 8.6.x
    - LabVIEW 8.5.x and
    - LabVIEW 8.2.x
    It is not possible to add LabVIEW 8.2.x compatibility to NI-DAQmx Base 3.4. I hope, this clarifies the version compatibility.
    Best Regards
    MarianO

  • How to execute sql-queries through shell scripting in linux?

    How to execute sql-queries through shell scripting in linux?

    http://www.oracle.com/technology/pub/articles/saternos_scripting.html
    Two simple examples:
    #!/usr/bin/env bash
    set_orafra () {
       orafra=`echo 'set heading off
       select name from v$recovery_file_dest;
       exit' | sqlplus -s / as sysdba`
    set_orafra
    echo $orafra
    #!/usr/bin/env bash
    export ORACLE_SID=instance_name
    export ORACLE_HOME=/path_to_oracle_home_directory
    export LD_LIBRARY_PATH=$ORACLE_HOME/lib
    export PATH=/$ORACLE_HOME/bin/$PATH
    $ORACLE_HOME/bin/sqlplus -s <<EOF
    connect scott/tiger@my_instance_name
    INSERT INTO table VALUES (sysdate);
    exit
    EOFEdited by: Markus Waldorf on Sep 17, 2010 12:19 AM

  • Compatibility with notebooks graphic chips

    Hello,
    I am about to buy a notebook. Today I had a short conversation with the local stockist and I will talk to him tomorrow again. It's also part of a company that serves a lot of the local companies with IT solutions. They work with Linux systems too.
    I said that I would not like an onboard graphic chip like the intel X4500. He said to me that they would cause less problems than the graphic chips by nvidia or ati/amd.
    Since I used Linux, which is almost 4 years now I am very active on reading blogs, forums and other articles about Linux. I rather observed quite the opposite to this. Performance wise graphic chips by nvidia and ati are ahead, even a small middle class chip that's sure.
    But that was not the main point we were talking about.
    The most important point was compatibility. He said that ati and nvidia driver cause more trouble on linux than intel.
    From what I read about it in the past is that all drivers, especially ati and intel are improving a lot. If I search different sources for experiences with intel, ati and nvidia graphic chips I find more problems with intel but that can just be a coincidence.
    But overall I think in terms of compatibility it does not matter anymore what type of graphic chip you choose.
    Can somebody maybe enlighten me a bit?
    At the moment I am considering buying the Dell Studio 15 with an ATI 5450. This Studio 15 seems to be a decent relation of price and performance considering the fact that I don't want to use it for gaming in first line.
    I hope some people can tell me a little bit more about graphic chips on linuxs.
    Thanks and Regards!

    My experience is first of all, I would not recommend ati.  I have read that ati has gotten better but I have failed to see it in action.  I have a 9250 that support was dropped for long ago and an x200 in my laptop and support was dropped for that last year.  Thanks to the open source community I have a stable arch linux running with the open source driver.  However, no open source driver will ever give you the 3d acceleration that proprietary drivers will.  I have heard good things about new intel cards.  I have never owned an intel graphics card.  I read that the drivers are stable but not capable of 3d acceleration. I am not sure of the details on this. I will note that there was a particular release of an intel driver that was completely broken.  I had to use fbdev to get X11 up on that system.  I am not sure of the driver version or card, I only know I googled the problem and it was in fact a bug.  I have an nvidia 6200le and the proprietary drivers were much easier to setup than ati and it has been very stable for 3 years.  Although the 6200le is not a newer card nvidia is still supporting cards older than mine.  Thank you Nvidia.  So, despite all the rumors and reviews, if I am looking for a performance laptop, I would not consider anything except Nvidia.  Hope that helps.

  • Windows 8 and itunes 11 compatibility with an ipod

    I have itunes11 and Windows 8. I've called Apple and I've talked to Microsoft. This was months ago. I can download itunes and run it from my laptop but am unable to sync my ipod. I get an error and it automatically reboots my computer. I was told there were known compatibility with itunes and Windows 8.  This was months ago.
    I know how to downgrade itunes to XP or Win 7. This is not the issue. I can download to my laptop and place, it will not sync to my ipod device (which is a fear years old), but when I did talk to support I was told that it was supported. The ipod was not the issue.. It was the incompatibility between the programs.
    I see recent updates in the support community in the past month about production resolution but this still has not resolved my issue. I don't believe purchasing a new ipod is going to resolve the issue either.
    If anyone has successfully developed a workaround or recently downloaded itunes11 w/ Windows 8 and can sync to an apple ipod I would love to know how you did it.
    Kia
    [email protected]

    Im not sure that will solve the issue I have with itunes. I have a lenovo laptop and I think it's just an issue with Apple who has to modify the program for users of Windows 8 so that itunes can be used and to find purchased music. I found the music I purchased through itunes but it's not the full tracks. It said it allows me to download it fully so I can hear the whole track, but needs some kind of capatibility? I have no idea what the problem is. If someone has the answer knowing my computer brand and having windows 8 compatibility issues, please let me know what you suggest.

Maybe you are looking for

  • Approvals during trusted recon in OIM 11gr2

    Folks, I have a requirement to send create user approvals to a user during trusted reconciliation from a file . Is it feasible to achieve .? i.e we dont want to directly create users in OIM on trusted recon rather send them for approval and after suc

  • Delete tree nodes from Table

    I have created a tree table create table subforums ( id          NUMBER(5) primary key, parent_id     references subforums, name          varchar2(100) And now i dont know how to delete a tree with a specified id and all of his children. I tried to f

  • Does Muse have a widget that will allow users to book tables and/or pay for take-away?

    I have already used Muse to set up my portfolio. Now a new challenge - I need to create a website for mobile / tablet users that permits browsing dishes, booking tables and maybe a widget that allows them to pay on-line before collection? I've scanne

  • Im having trouble updating the new ios5 on my iphone 4

    basically whats happening is that my phone is not backing up when try to update the software.. seem that itunes cannot connect to my phone or something.. although i doest state sync in progress on my phone.. i left my phone for more than 7 hours and

  • Has 10.4.3 damaged my Mac?

    After upgrading my Mac wouldn't boot up, getting permanently stuck at the end of the 'starting Mac OS X' screen. Despite various attempts using TechTool Pro and DiskWarrior and reinstallations I can now only run 10.4.0. If I try and upgrade to 10.4.1