zsh-workers
 help / color / mirror / code / Atom feed
* Re: Completion bug with `pwd`?
@ 1998-06-23 14:24 Andrej Borsenkow
  1998-06-23 14:44 ` Zefram
  0 siblings, 1 reply; 4+ messages in thread
From: Andrej Borsenkow @ 1998-06-23 14:24 UTC (permalink / raw)
  To: Zefram; +Cc: zsh-workers


-----Original Message-----
From: Zefram <zefram@tao.co.uk>
To: Andrej Borsenkow <borsenkow.msk@sni.de>
Cc: <zsh-workers@math.gatech.edu>


>Andrej Borsenkow wrote:
>>itsrm2% cat `pwd`/defTAB ==>
>>itsrm2% cat /home/bor/tmp/stawropol/def <=CURSOR here (after one space)
>
>Presumably you have tab bound to expand-or-complete, which will expand
>command substitutions rather than doing completion.
>

Yes. It seems to be default in ZSH :))

What is the correct way to do the above? (There are several commands which
insists on having the absolute pathname).

/Andrej



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Completion bug with `pwd`?
  1998-06-23 14:24 Completion bug with `pwd`? Andrej Borsenkow
@ 1998-06-23 14:44 ` Zefram
  0 siblings, 0 replies; 4+ messages in thread
From: Zefram @ 1998-06-23 14:44 UTC (permalink / raw)
  To: Andrej Borsenkow; +Cc: zefram, zsh-workers

Andrej Borsenkow wrote:
>What is the correct way to do the above? (There are several commands which
>insists on having the absolute pathname).

Use "$PWD" or "~+" instead of "`pwd`".  It is possible to perform pathname
completion leaving pathname expansions and parameter expansions in the
word, where command substitutions must be expanded.  It also saves a
process (and some time) and avoids the ambiguity of command substitution.

-zefram


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Completion bug with `pwd`?
  1998-06-23 13:52 Andrej Borsenkow
@ 1998-06-23 14:16 ` Zefram
  0 siblings, 0 replies; 4+ messages in thread
From: Zefram @ 1998-06-23 14:16 UTC (permalink / raw)
  To: Andrej Borsenkow; +Cc: zsh-workers

Andrej Borsenkow wrote:
>itsrm2% cat `pwd`/defTAB ==>
>itsrm2% cat /home/bor/tmp/stawropol/def <=CURSOR here (after one space)

Presumably you have tab bound to expand-or-complete, which will expand
command substitutions rather than doing completion.

-zefram


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Completion bug with `pwd`?
@ 1998-06-23 13:52 Andrej Borsenkow
  1998-06-23 14:16 ` Zefram
  0 siblings, 1 reply; 4+ messages in thread
From: Andrej Borsenkow @ 1998-06-23 13:52 UTC (permalink / raw)
  To: ZSH workers mailing list

Something strange ...

echo $ZSH_VERSION
3.1.4
zsh -f
itsrm2% pwd
/home/bor/tmp/stawropol
itsrm2% ls def*
default1log  default2log
itsrm2% cat `pwd`/defTAB ==>
itsrm2% cat /home/bor/tmp/stawropol/def <=CURSOR here (after one space)

simple cat defTAB or cat /home/bor/tmp/stawropol/defTAB work O.K.

============================================================
Andrej Borsenkow                Fax:   +7 (095) 796 99 20
SNI ITS Moscow                  Tel:   +7 (095) 796 99 24

NERV:  borsenkow.msk            E-Mail: borsenkow.msk@sni.de
============================================================



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1998-06-23 14:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-06-23 14:24 Completion bug with `pwd`? Andrej Borsenkow
1998-06-23 14:44 ` Zefram
  -- strict thread matches above, loose matches on Subject: below --
1998-06-23 13:52 Andrej Borsenkow
1998-06-23 14:16 ` Zefram

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).