In the SuSE built ksh93u+ I get cp003421_home> echo $KSH_VERSION Version AJM 93u+ 2012-08-01 cp003421_home> typeset -p _AST_FEATURES typeset -x _AST_FEATURES='UNIVERSE - att' cp003421_home> builtin getconf cp003421_home> getconf UNIVERSE att
and echo honors "\n..." in the self made ksh93v- I get cp003421_home> echo $KSH_VERSION Version AIJM 93v- 2013-07-24 cp003421_home> typeset -p _AST_FEATURES typeset -x _AST_FEATURES='UNIVERSE - ucb PATH_RESOLVE - physical' cp003421_home> getconf UNIVERSE ucb However changing it does not work as described below: cp003421_home> getconf -w [...] UNIVERSE=ucb cp003421_home> getconf UNIVERSE - att cp003421_home> getconf UNIVERSE ucb My PATH starts with /yaprod/override/Linux_x86_64/bin:/bin:/usr/bin:/opt/kde3/bin:/usr/sbin:, rebuilding and starting ksh93v- with PATH=/usr/bin:/bin: did not change anything. Any advice on how I can modify the build procedure or change the behavior at runtime is appreciated. Best Regards Axel Philipp -----Ursprüngliche Nachricht----- Von: Glenn Fowler [mailto:[email protected]] Gesendet: Freitag, 2. August 2013 00:03 An: PHILIPP, Axel, Dr.; [email protected]; [email protected] Cc: [email protected] Betreff: Re: [ast-users] Regression in ksh93v-: echo does no longer accept escape sequences sorry for the delay on responding this will show the universe setting getconf UNIVERSE the universe is similar to gnu's POSIXLY_CORRECT and handle parts of std utilities that are "undefined" or "implementation-dependent" "att" and "ucb" are the expected values ast source for the most part checks for "att" for system-5 style ksh also check for "ucb" for berkley style this can change the setting for the current shell and children getconf UNIVERSE - ucb the setting is maintained in an _*_ env var so its not tamper proof the initial setting is done in src/lib/libast/port/astconf.c by looking at the PATH env var checking for system-5-ish and berkley-ish dirs from left to right the leftmost one wins if its "att" then echo groks neither \ nor -options, otherwise it does On Mon, 29 Jul 2013 11:23:17 +0200 =?KOI8-R?B?z8zYx8Egy9LZ1sHOz9fTy8HR?= wrote: > I can confirm the problem on Suse Linux 12.3, but not on Solaris 11/i386. > I think the magic switch in AST echo which selects the proper > emulation mode (BSD, SYSV) is broken. > Glenn, how again can I affect the UNIVERSE setting in AST? There was a > magic, hidden, environment variable to do it. > Olga > On Mon, Jul 29, 2013 at 11:10 AM, PHILIPP, Axel, Dr. > <[email protected]> wrote: > > > > Version AJM 93u+ 2012-08-01 : > > cp003421 > ksh -c 'echo "\nTest\n"' > > > > Test > > > > > > Version AIJM 93v- 2013-07-24 : > > cp003421 > ksh93v -c 'echo "\nTest\n"' > > \nTest\n > > cp003421 > cat /etc/SuSE-release > > SUSE Linux Enterprise Desktop 11 (x86_64) > > VERSION = 11 > > PATCHLEVEL = 2 > > > > > > Best Regards > > Axel Philipp -- MTU Aero Engines AG Geschaeftsfuehrung/Board of Management: Egon W. Behle, Vorsitzender/CEO; Dr. Rainer Martens, Michael Schreyögg, Dr. Stefan Weingartner, Reiner Winkler Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Klaus Eberhardt Sitz der Gesellschaft/Registered Office: Muenchen Handelsregister/Commercial Register: Muenchen HRB 157206 Diese E-Mail sowie ihre Anhaenge enthalten MTU-eigene vertrauliche oder rechtlich geschuetzte Informationen. Wenn Sie nicht der beabsichtigte Empfaenger sind, informieren Sie bitte den Absender und loeschen Sie diese E-Mail sowie die Anhaenge. Das unbefugte Speichern, Kopieren oder Weiterleiten ist nicht gestattet. This e-mail and any attached documents are proprietary to MTU, confidential or protected by law. If you are not the intended recipient, please advise the sender and delete this message and its attachments. Any unauthorised storing, copying or distribution is prohibited. _______________________________________________ ast-users mailing list [email protected] http://lists.research.att.com/mailman/listinfo/ast-users
