LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 02-03-2010, 12:41 AM   #1
anu_1
LQ Newbie
 
Registered: Jan 2010
Posts: 12

Rep: Reputation: 0
Different behavior of LC_COLLATE in AIX & LINUX


1. I have created following files in both AIX & Linux
touch a A b B c C x X y Y z Z

2. AIX

$ LC_COLLATE=en_US ; export LC_COLLATE
$echo [a-z]
$ a b c x y z


3. In LINUX
$ LC_COLLATE=en_US ; export LC_COLLATE
$ echo [a-z]
$ a A b B c C x X y Y z

Could anyone please explain the difference in behavior...
Thanks for your help
 
Old 02-03-2010, 01:51 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
Have you checked that you are using exactly the same shell & shell version on both systems?
 
Old 02-03-2010, 02:35 AM   #3
anu_1
LQ Newbie
 
Registered: Jan 2010
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by chrism01 View Post
Have you checked that you are using exactly the same shell & shell version on both systems?
For AIX the shell was /usr/bin/ksh , for Linux it was /bin/bash
I changed the Linux shell to /usr/bin/ksh..But result is still same
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Random number generation weird behavior in Win && Linux comparation Bassy Programming 8 03-29-2009 10:39 PM
O&B ftp behavior longtex Linux - Software 0 10-02-2005 10:12 PM
Help with AIX/RS6000 & Linux Network lionlion AIX 4 10-08-2004 04:59 AM
OpenMosix & AIX MarKK AIX 5 04-16-2004 01:23 PM


All times are GMT -5. The time now is 10:33 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration