For reference, the only current shell I can find that agrees with ksh93 is zsh
in its default mode. In all emulation modes (including ksh), it reverts to
being like Bash and others (mksh, dash, busybox, posh).
Regardless of which is correct, I've seen a lot of questions and confusion
generated
On 10/25/12 9:43 AM, David Korn wrote:
> cc: ast-us...@research.att.com
> Subject: Re: [ast-users] [ksh93] Should ~$user be tilde expanded?
>
>
>
>> I think bash behavior is correct according to
>> http://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_
>> 06whi
On 10/25/2012 04:07 PM, Clark WANG wrote:
See following example:
$ cat foo.sh
u=root
echo ~$u
$ bash foo.sh # bash 4.2.37
~root
$ ksh foo.sh # ksh 93u+ 2012-08-01
/root
$
Anyone can explain/confirm what should be the correct behavior?
-Clark
http://www.gnu.org/software/bash/manual/bashref.h
See following example:
$ cat foo.sh
u=root
echo ~$u
$ bash foo.sh # bash 4.2.37
~root
$ ksh foo.sh # ksh 93u+ 2012-08-01
/root
$
Anyone can explain/confirm what should be the correct behavior?
-Clark