bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: print function in <bashsource>/examples/functions/kshenv


From: Chet Ramey
Subject: Re: print function in <bashsource>/examples/functions/kshenv
Date: Wed, 28 Mar 2012 22:25:34 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2

On 8/20/11 11:17 PM, Paul Tibbitts wrote:
> This is not a bug in bash itself, but I was wondering if there are any
> updates to the ksh-compatibility print function provided with bash in
> the source distribution (in the examples/functions/kshenv file),
> specifically with regards to ksh-compatible handling of -R.
> 
> Using ksh:
> 
> $ print -R -z
> -z
> 
> Using bash 4.2.10 with the kshenv file:
> 
> $ print -R -z
> bash: illegal option -- z
> 
> My understanding is that the -R should disable further option
> processing except for -n, and display any additional arguments,
> including those beginning with "-"
> 
> I have worked around the problem to some extent by modifying the
> function, but was wondering if anyone has a more accurate/efficient/
> official/distributed version.

If you have improvements to the function, please send them to me and I will
incorporate them into the bash distribution.  There's nothing official
about those functions; they're just examples.


-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]