no "yeah boy!" on sunos - what gives?
My SunOS will not go "yeah boy" from the command line - what gives?
Code:
but my linux wll : Code:
[casper@linux1 logs]$ echo $SHELL |
Quote:
The SHELL variable is bash/ksh specific and will not be changed when using a zsh shell. |
How do I assign the output of a command to a variable on the command line in ZSH. I have tried looking google for 'assign variable command line zsh' but have nt found anything.
is there some other way that I should phrase it for google Is there an IRC channel dedicated to ZSH? This was an attempt at humor, not well recieved - but i use this kind of variable assignments alot. I think that the sysadmin enabled zsh on the sun boxes to try and add some enhancements to these legacy machines. I can't work as fast with zsh on the sun boxes and it is a pain. |
About your problem, try this:
Code:
x=`uname -a | awk '{print $1}'` ; if [[ "$x" == "SunOS" ]]; then echo "yeah boy" ; fi About zsh vs bash: Are you forced to use zsh? You could ask the system administrator to change your login shell to bash instead. The sys admin shouldn't force you to use a specific shell unless there is a very good reason to do so. |
When you ssh to a sunos box it kicks off a script that mounts you a directory and enables ZSH.
I guess i could just get out of ZSH. funny - when i echo the shell on the sunos box it says BASH, yet I am clearly in the ZSH shell. The double bracket works on the SUN os boxes. So I guess it is more of an issue with the version of bash than the shell i am using. most of the linux boxes are 4.1 and the sun os is 3.0 linux Code:
[casper@linux1 ]$ bash --version sunos Code:
casper@sunbox1 > bash --version |
i found a great way to get the ip address on a sunos box
Code:
|
@casperdaghost:
If you are familiar with Linux and want to know what the Solaris equivalent of a command is, then have a look here: - A Sysadmin's Unixersal Translator (ROSETTA STONE) OR What do they call that in this world? |
All times are GMT -5. The time now is 07:55 PM. |