LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-02-2010, 08:45 AM   #1
turf
Member
 
Registered: Nov 2009
Posts: 94

Rep: Reputation: 15
how to set to be a POSIX compliant


how to set you distro to be a POSIX compliant?
 
Old 10-02-2010, 08:54 AM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
You would need to be MUCH more specific with this question, or re-word the question to address one specific area or component of an operating system.

There is no single "setting" or "button" to set or click, to turn on or off POSIX compliance. Some OS's are more POSIX compliant than others though.

For starters, please open google.com and enter "Linux POSIX compliance". Examine some of the first 9 results you get, and you should then have a much better idea what exactly you're trying to ask.

Best regards!
 
Old 10-02-2010, 09:06 AM   #3
turf
Member
 
Registered: Nov 2009
Posts: 94

Original Poster
Rep: Reputation: 15
not sure too but i'm trying to learn bash scripting and the ebook explains about something like a command "sa" for braise expansion and it returns command not found.

Quote:
root[SHcripts]# sa {one,two,three}
bash: sa: command not found
root[SHcripts]#
but maybe if this is a POSIX compliant, it might work.
 
Old 10-02-2010, 09:33 AM   #4
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
I don't see how this `sa` command has anything to do with POSIX. Have a look at the manpage for `sa` to be sure.

It appears that you're trying to create an array of three elements in your last post, but I can't be sure if that was your intent. For what it's worth, 100% POSIX-compliant shells do not allow arrays. And, in Bash (a "POSIX-compliant" shell) you can use arrays, even if you start Bash with the --posix option.

Moral:

Code written in bash will not necessarily run in a 100% POSIX shell, unless the coder has been very careful to use only POSIX compliant code. Bash has a number of features that are "extra", and are available only in bash, and do not work in other shells.
On the other hand, code written in a 100% POSIX shell, will run in Bash.

You write:
Quote:
...ebook explains about something like a command...
So, I advise you re-read the ebook carefully and examine exactly what it says, because "about something like" is not concise enough that we can be sure we're on the same page here.

Cheers!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to deal with bash[$style] arrays in a POSIX compliant script? GrapefruiTgirl Programming 8 01-02-2015 11:17 PM
POSIX compliant distributed file systems without using shared storage anon.addon Linux - Software 1 12-12-2009 09:54 AM
LXer: Demo features POSIX-compliant separation kernel, Linux LXer Syndicated Linux News 0 01-23-2007 11:54 PM
c programming compliant with posix ---HELP! v333k Programming 4 02-28-2005 03:08 PM
Open source, posix compliant, person renderer? Elomis Linux - Software 0 01-10-2005 04:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration