LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-02-2010, 11:41 PM   #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, 12:51 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,348

Rep: Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749
Have you checked that you are using exactly the same shell & shell version on both systems?
 
Old 02-03-2010, 01: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 09:39 PM
O&B ftp behavior longtex Linux - Software 0 10-02-2005 09:12 PM
Help with AIX/RS6000 & Linux Network lionlion AIX 4 10-08-2004 03:59 AM
OpenMosix & AIX MarKK AIX 5 04-16-2004 12:23 PM

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

All times are GMT -5. The time now is 07:35 AM.

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