Thanks, Olga.
ksh93v -c 'echo -e "\nTest\n"' and ksh93v -c "echo $'\nTest\n'" also work, but 
we don't want to change all scripts.

In this context I would like to understand, why ksh complains about unbalanced 
apostrophes in the following assignment:
cp003421> aux='ab\'c d\'ef'
>
cp003421> aux="ab\"c d\"ef"  does work

only this does work: aux='ab'\''c d'\''ef' or aux=ab\''c d'\'ef (I 
intentionally do not want to mix single and double quotes)

Best Regards
Axel Philipp


-----Ursprüngliche Nachricht-----
Von: ольга крыжановская [mailto:[email protected]]
Gesendet: Montag, 29. Juli 2013 11:25
An: PHILIPP, Axel, Dr.; Glenn Fowler
Cc: [email protected]
Betreff: Re: [ast-users] Regression in ksh93v-: echo does no longer accept 
escape sequences

Axel, the work around is to use the POSIX printf utility/builtin, or
it's print sibling (has more options, see print --man). printf(1) has
standard behaviour on all platforms, and is tested on regular basis
against the test suites of the standards.

Olga

On Mon, Jul 29, 2013 at 11:23 AM, ольга крыжановская
<[email protected]> 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
>>
>
>
>
> --
>       ,   _                                    _   ,
>      { \/`o;====-    Olga Kryzhanovska   -====;o`\/ }
> .----'-/`-/     [email protected]   \-`\-'----.
>  `'-..-| /       http://twitter.com/fleyta     \ |-..-'`
>       /\/\     Solaris/BSD//C/C++ programmer   /\/\
>       `--`                                      `--`



--
      ,   _                                    _   ,
     { \/`o;====-    Olga Kryzhanovska   -====;o`\/ }
.----'-/`-/     [email protected]   \-`\-'----.
 `'-..-| /       http://twitter.com/fleyta     \ |-..-'`
      /\/\     Solaris/BSD//C/C++ programmer   /\/\
      `--`                                      `--`
--
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

Reply via email to