OpenSolaris
Collectives
Discussions
Documentation
Download
Source Browser
Free CD
Log-in
|
en
Project ksh93-integration
:
Documentation
>
ksh93r docs
>
General
>
COMPATIBILITY
Top Menu
Show
:
Comments
Attachments
History
Information
Print
:
Print
Print preview
Export as PDF
Export as RTF
Export as HTML
Export as XAR
Wiki code for
COMPATIBILITY
Hide Line numbers
1: {{{ 2: 3: KSH-93 VS. KSH-88 4: 5: The following is a list of known incompatibilities between ksh-93 and ksh-88. 6: I have not include cases that are clearly bugs in ksh-88. I also have 7: omitted features that are completely upward compatible. 8: 9: 1. Functions, defined with name() with ksh-93 are compatible with 10: the POSIX standard, not with ksh-88. No local variables are 11: permitted, and there is no separate scope. Functions defined 12: with the function name syntax, maintain compatibility. 13: This also affects function traces. 14: 15: 2. ! is now a reserved word. As a result, any command by that 16: name will no longer work with ksh-93. 17: 18: 3. The -x attribute of alias and typeset -f is no longer 19: effective and the ENV file is only read for interactive 20: shells. You need to use FPATH to make function definitions 21: visible to scripts. 22: 23: 4. A built-in command named command has been added which is 24: always found before the PATH search. Any script which uses 25: this name as the name of a command (or function) will not 26: be compatible. 27: 28: 5. The output format for some built-ins has changed. In particular 29: the output format for set, typeset and alias now have single 30: quotes around values that have special characters. The output 31: for trap without arguments has a format that can be used as input. 32: 33: 6. With ksh-88, a dollar sign ($’) followed by a single quote was 34: interpreted literally. Now it is an ANSI-C string. You 35: must quote the dollar sign to get the previous behavior. 36: Also, a $ in front of a " indicates that the string needs 37: to be translated for locales other than C or POSIX. The $ 38: is ignored in the C and POSIX locale. 39: 40: 7. With ksh-88, tilde expansion did not take place inside ${...}. 41: with ksh-93, ${foo-~} will cause tilde expansion if foo is 42: not set. You need to escape the ~ for the previous behavior. 43: 44: 8. Some changes in the tokenizing rules where made that might 45: cause some scripts with previously ambiguous use of quoting 46: to produce syntax errors. 47: 48: 9. Programs that rely on specific exit values for the shell, 49: (rather than 0 or non-zero) may not be compatible. The 50: exit status for many shell failures has been changed. 51: 52: 10. Built-ins in ksh-88 were always executed before looking for 53: the command in the PATH variable. This is no longer true. 54: Thus, with ksh-93, if you have the current directory first 55: in your PATH, and you have a program named test in your 56: directory, it will be executed when you type test; the 57: built-in version will be run at the point /bin is found 58: in your PATH. 59: 60: 11. Some undocumented combinations of argument passing to ksh 61: builtins no longer works since ksh-93 is getopts conforming 62: with respect to its built-ins. For example, typeset -8i 63: previously would work as a synonym for typeset -i8. 64: 65: 12. Command substitution and arithmetic expansion are now performed 66: on PS1, PS3, and ENV when they are expanded. Thus, ` and $( 67: as part of the value of these variables must be preceded by a \ 68: to preserve their previous behavior. 69: 70: 13. The ERRNO variable has been dropped. 71: 72: 14. If the file name following a redirection symbol contain pattern 73: characters they will only be expanded for interactive shells. 74: 75: 15. The arguments to a dot script will be restored when it completes. 76: 77: 16. The list of tracked aliases is not displayed with alias unless 78: the -t option is specified. 79: 80: 17. The POSIX standard requires that test "$arg" have exit status 81: of 0, if and only if $arg is null. However, since this breaks 82: programs that use test -t, ksh93 treats an explicit test -t 83: as if the user had entered test -t 1. 84: 85: 18. The ^T directive of emacs mode has been changed to work the 86: way it does in gnu-emacs. 87: 88: 19. ksh-88 allowed unbalanced parenthes within ${name op val} whereas 89: ksh-93 does not. Thus, ${foo-(} needs to be written as ${foo-\(} 90: which works with both versions. 91: 92: 20. kill -l in ksh-93 lists only the signal names, not their numerical 93: values. 94: 95: 21. Local variables defined by typeset are statically scoped in 96: ksh93. In ksh88 they were dynamically scoped although this 97: behavior was never documented. 98: 99: 22. The value of the variable given to getopts is set to ? when 100: the end-of-options is reached to conform to the POSIX standard. 101: 102: 23. Since the POSIX standard requires that octal constants be 103: recongnized, doing arithmetic on typeset -Z variables can 104: yield different results that with ksh88. Most of these 105: differences were eliminated in ksh93o. 106: 107: 24. Starting after ksh93l, If you run ksh name, where name does 108: not contain a /, the current directory will be searched 109: before doing a path search on name as required by the POSIX 110: shell standard. 111: 112: 25. In ksh93, cd - will output the directory that it changes 113: to on standard output as required by X/Open. With ksh88, 114: this only happened for interactive shells. 115: 116: 26. As an undocumented feature of ksh-88, a leading 0 to an 117: assignment of an integer variable caused that variable 118: to be treated as unsigned. This behavior was removed 119: starting in ksh93p. 120: 121: 27. The getopts builtin in ksh93 requires that optstring contain 122: a leading + to allow options to begin with a +. 123: 124: 28. In emacs/gmacs mode, control-v will not display the version when 125: the stty lnext character is set to control-v or is unset. 126: The sequence escape control-v will display the shell version. 127: 128: I am interested in expanding this list so please let me know if you 129: uncover any others. 130: 131: }}}
Search
Collectives
Community Group
Academic and Research
Accessibility
Advocacy
Appliances
Approachability
Architecture Process and Tools
BrandZ
Chinese Users
Community Advisory Board
Databases
Desktop
Device Drivers
Distribution
Documentation
DTrace
Emerging Platforms
Fault Management
Games on OpenSolaris
HA Clusters
HPC Developer
Installation and Packaging
Internationalization and Localization
Laptop
Logical Domains
Modular Debugger (MDB)
Networking
NFS
Observability
OpenSolaris Governing Board (OGB)
OpenSolaris Printing
OS/Net (ON)
Performance
Power Management
PowerPC
Security
Service Management Facility (smf(5))
Software Porters
Solaris Volume Manager
Storage
Systems Administration Community Group
Testing
Tools Home
Unix File Systems (UFS)
Website Community
X Window System
Xen
ZFS
Zones
Project
ADSL Modem Enhancement
ARC Process Definition
ARM Platform Port
Automatic Data Migration
BIND Update
Bluetooth Stack & Drivers
Brocade FC HBA - Initiator
Brocade FC HBA - Target
Brussels - unified network link configuration
Caiman, Solaris Install Revisited
Celeste
Český portál
Chime Visualization Tool for DTrace
CIFS client for Solaris
CIFS Server
Clearview: Network Interface Coherence
Cluster Agent: Informix Dynamic Server
Cluster Agent: OpenSolaris Container
Cluster Agent: OpenSolaris xVM
Cluster Agent: Oracle E-Business Suite
Cluster agent: PostgreSQL
Cluster Agent: Samba
Cluster Agent: Tomcat
CMT
Coarse Data Flow Parallelism
Colorado: Open HA Cluster on OpenSolaris
Command Assistant
Common Array Manager
Companion - /opt/sfw: Free and Open Source software
COMSTAR: Common Multiprotocol SCSI Target
Content
Contest
CPU Observability
Credentials Process Groups
Crossbow: Network Virtualization and Resource Control
Crypto KMS Agent Toolkit
Cryptographic Framework
Data Migration Manager
Data Tethers
Deutsches Portal
Device Detection Tool
Device Driver Utility
Device Manager
Device Mapper
Direct Rendering Infrastructure & 3D drivers
DTrace Guide
Duckwater: Simplified name services management
Easy Tools
Emancipation
Emulex Fibre Channel Device Driver
Emulex Advanced Ethernet Device Driver
Enable/Enhance Solaris support for Intel Platform
Enhance the support of USB webcams
Enhanced SMF Profiles
Enhancements for AMD-based Platforms
Erlang DTrace Integration
Ethernet bridge module for Solaris
Evaluate Conary
Events Registry
Ext3 file system support
F/OSS Package Base
Facilitation
Fibre Channel over Ethernet
Fine Grained Access Policy (FGAP)
Fingerprint Authentication
Flexible Mandatory Access Control
Forensic Tools
Fully Open X Project
Fuse on Solaris
gcore
Generic Machine Check Architecture Improvements
Google SOC
HA-JBoss
HA-MySQL
Hadoop Live CD
Hitachi
HoneyComb Fixed Content Storage
HPC Stack
Image Packaging System
Improved Performance MIB
Indiana
Innovation Awards
Input Method
Intel Graphics
Internet Key Exchange, version 2
Interrupt Resource Management
IP Datapath Refactoring
IP over Infiniband
IPsec Tunnel Reform
iSCSI Extensions for Remote DMA (iSER)
iSNS Server
JeOS - Just enough Operating System
JKstat - a java binding for libkstat
Journaled File System (JFS)
K Desktop Environment
Kerberos
Kernel Sockets
Kernel SSL Enhancements
Key Management Framework
Korn Shell 93 integration/migration project
Labeled IPsec
LatencyTOP
Layer 2 Filtering
LDoms Manager
Lending
libMicro - portable microbenchmarks
Link Layer Discovery
Live Media: Technologies for distributions running from CD and other media
Locale Data
lofi compression and cryptography support
lx64 brand
Media Management System
Mega_sas
Mexico
MilaX minimal Live Distribution
MIPS Platform Port
Mozilla DTrace
MRSL.NONsharedDevice
Multi-lingual Glossary
Multi-pathing software (MPxIO)
Multiple disk sector size support
Multiple DOI
Muskoka: An open repository for OpenSolaris technical content
Navigator
Nemo: A Framework for High-Performance Networking
Network Auto-Magic
Network Data Management Protocol
Network MIBs
Network Storage
Network Time Protocol (NTP)
Nevada Globalization
New Design of 4over6 Mechanism Based on OpenSolaris
NFS RDMA transport update and performance analysis
NFS Server in non-Global Zones
NFS version 4.1 pNFS
NFSv4 namespace extensions
Nightingale: Port Songbird to OpenSolaris
NPort ID Virtualization (NPIV)
NUMA
Object Storage Device (OSD) support for Solaris
OHACGE Script Based Plug-in
ON/Nevada (ONNV) Project
Open Development Infrastructure
Open HA Cluster Utilities
Open Sound System
OpenGrok
OpenPegasus CIM Server
OpenRTI
OpenSolaris Busybox
OpenSolaris Desktop
OpenSolaris Hispano
OpenSolaris Security Audit
OpenSolaris support for the QEMU processor emulator: host and guest
PEF: Packet Event Framework
Performance Wrappers
Pkgfactory
Polski Portal
Portail Francophone
Portal Brasil
Portals
Power Management Usability Interfaces
Presto: Automatic Printing Configuration
Printable Many Page Solaris Manuals
Promise SuperTrak RAID HBA Driver
QLogic Converged Network Adapter GLDv3 NIC Driver
Quagga Routing Protocol Suite Integration
RAID Configuration Utility
RBridge (IETF TRILL) support
RDMA Offload Framework
Reno: Login Process Enhancements for Interop
Resource Management
s10brand
SAM/QFS
SCM Migration Project
SCSI RDMA Protocol
SDcard Drivers
Sensor Abstraction Layer
Session Initiation Protocol
SFW
Shell: bourne shell, korn shell, C shell, etc.
Sierra: Intel WiFi Chipsets Support
Simple Panels
SM-HBA Based SAS HBA Management
SMF Documentation
Solaris iSCSI Target
Solaris PowerPC Port
SourceJuicer
Sparks: name service switch/nscd enhancements
Squashfs
Star integration/migration project
Starfish
Starter Kit
Storage Power Management
Sun Security Toolkit
Sun StorageTek Availability Suite
Support for OpenFabrics User Verbs / API on OpenSolaris OS
Support gcc4/GCCfss in Solaris
Suspend/Resume
SVR4 Packaging
Systemz
Tamarack: Removable Media Enhancements in Solaris
Tesla: OpenSolaris Enhanced Power Management
Test Development
Tickless Kernel Architecture
TIPC
Trademarks
Trusted networking interface policy database for Trusted Extensions
Trusted Platform Module support
Use Case
Validated Execution Project
Virtual Console
Virtual Network Machines
Visual Panels
Visualization for HPC
Volo
VRRP: Virtual Router Redundancy Protocol Implementation
VSCAN service
Web Stack
Website
Winchester: Schema mapping and ID mapping for AD Interoperability
Wireless USB Support
Wireless Wide Area Network
X Consolidation
x86 Generic FMA Topology Enumerator
Xen Gate
Xfce: A lightweight desktop environment
ZFS Boot and Install
ZFS on disk encryption support
Zone Manager
Zone Statistics
Русский портал
البوابة العربية
भारतीय पोर्टल
中国门户
日本ポータル
한국 포탈
User Group
Adelaide
Argentina
Arizona
Atlanta
Baltimore-Washington
Bangalore
Bangkok
Bangladesh
Beijing
Bélem
Berlin
Bhimavaram
Bloomington
Campus Ambassadors
Capital Region
Cardiff
Charlotte
Chengdu
Chennai
Chihuahua
Chile
Cleveland
Colombia
Columbus
Connecticut
Cracow
Czech
Dallas/Ft. Worth
Danish
Delaware
Edinburgh
Egypt
Finland
Florida
Front Range
FuZhou
Great Lakes
Greece
Hangzhou
Hawaii
HeFei
Houston
Hyderabad
Indonesia
Irish
Israel
Italian
Jinan
Kabul
Kansas City
Latvia
London
Madurai
Manchester
Mato Grosso
Melbourne
Minas Gerais
Minnesota
Montreal
Moscow
Mumbai
Munich
NEA
Netherlands
New England
New York City
New Zealand
NIT Hamirpur
Noroeste
Oklahoma City
Osnabrück
Peru
Philadelphia
Piaski
Pittsburgh
Porto Alegre
Puget Sound
Pune
Queensland
Research Triangle Park
Romania
Russia
San Antonio
San Diego
San Francisco
São Paulo
Scottish
Serbia
Shanghai
Shenzhen
Silicon Valley
Singapore
Slovak
South African
Southern Connecticut
St. Louis
Sweden
Switzerland
Sydney
Szczecin
Taiwan
Tecum
Thames Valley
Tokyo
Toronto
Trondheim
Tulsa
Turkey
Ukraine
University of Melbourne
Vale do Paraíba
Vancouver
Venezuela
Welsh - Cymru
Wisconsin
Xi'an
Subsites
Code Reviews
Code Repositories
Package Search
Bugster
Bugzilla
Test Machines
Planet
Mailing Lists
Elections & Polls
ARC Case Logs
Source Juicer
Package Factory
User Authentication
Project ksh93-integration Pages
Documentation
ksh93r docs
ksh93s+ docs
Downloads
2006-07-12: ksh93 addon tarball for B37/i386
2006-08-05: ksh93 add-on tarballs for OpenSolaris
2006-08-27: ksh93 add-on tarballs for OpenSolaris
2006-09-14: ksh93 add-on tarballs for OpenSolaris
2006-12-14: ksh93 add-on tarballs for OpenSolaris
2007-03-18: ksh93 add-on tarballs for OpenSolaris
2007-04-19: ksh93 add-on tarballs for OpenSolaris
2007-07-14: ksh93 add-on tarballs for OpenSolaris
2007-10-31: ksh93 add-on tarballs for OpenSolaris
2007-11-05: ksh93 update tarballs for OpenSolaris
2008-02-29: ksh93 update tarballs for OpenSolaris
2008-06-17: ksh93 update tarballs for OpenSolaris
2008-06-24: ksh93 update tarballs for OpenSolaris
2008-07-02: ksh93 update tarballs for OpenSolaris
2008-08-10: ksh93 update tarballs for OpenSolaris
2008-11-14: ksh93 update tarballs for OpenSolaris
2009-03-31: ksh93 update tarballs for OpenSolaris
2009-04-20: ksh93 update 2 tarballs for OpenSolaris
2009-05-11: ksh93-integration update 2 tarballs for OpenSolaris
2009-05-27: ksh93-integration update 2 tarballs for OpenSolaris
2009-06-16: ksh93-integration update 2 tarballs for OpenSolaris
2009-07-02: ksh93-integration update 2 tarballs for OpenSolaris
2009-08-22: ksh93-integration update 2 tarballs for OpenSolaris
2009-09-16: ksh93-integration update 2 tarballs for OpenSolaris
2009-09-22: ksh93-integration update 2 tarballs for OpenSolaris
2009-10-18: ksh93-integration update 2 tarballs for OpenSolaris
OpenSolaris Developer Conference 2007
Screenshots
Source