Re: weird ksh '~' substitution - ksh bug?

2011-12-16 Thread Otto Moerbeek
On Fri, Dec 16, 2011 at 09:47:54AM +0100, LEVAI Daniel wrote: Hi! I can't get my around this: $ pwd /home/daniell $ cd ~/stuff/ ksh: cd: /home/daniell/~/stuff - No such file or directory $ cd ~/stuff/ $ pwd /home/daniell/stuff It seems ~ is substituted in the first case,

Re: weird ksh '~' substitution - ksh bug?

2011-12-16 Thread Dieter Schön
2011/12/16 LEVAI Daniel l...@ecentrum.hu: I suspect this is not a feature? looks like it is a feature: man ksh, Tilde expansion, first paragraph, second and last sentence: The characters following the tilde, up to the first `/', if any, are assumed to be a login name. If [..] or if any quoting

Re: weird ksh '~' substitution - ksh bug?

2011-12-16 Thread LEVAI Daniel
On Fri, Dec 16, 2011 at 10:55:08 +0100, Otto Moerbeek wrote: On Fri, Dec 16, 2011 at 09:47:54AM +0100, LEVAI Daniel wrote: [...] I think that explains your testcases. On Fri, Dec 16, 2011 at 11:05:50 +0100, Dieter Schvn wrote: 2011/12/16 LEVAI Daniel l...@ecentrum.hu: I suspect this is not

Re: weird ksh '~' substitution - ksh bug?

2011-12-16 Thread Steven McDonald
On Fri, 16 Dec 2011 09:47:54 +0100 LEVAI Daniel l...@ecentrum.hu wrote: $ cd ~/stuff/ ksh: cd: /home/daniell/~/stuff - No such file or directory [snip] It seems ~ is substituted in the first case Just a correction here: I don't think it's being substituted. Rather, the lack of a leading /