zsh-workers
 help / color / mirror / code / Atom feed
From: Hrvoje Niksic <hniksic@srce.hr>
To: zsh-workers@math.gatech.edu
Subject: Globbing bug?
Date: 07 Jun 1996 20:21:17 +0200	[thread overview]
Message-ID: <kig3f47mq5e.fsf@jagor.srce.hr> (raw)

I have found the following problem with globbing of symlinks pointing
to a directory:
Script started on Fri Jun 07 20:15:00 1996
jagor% ls -l
total 4
lrwxrwxrwx   1 hniksic  f2             1 Jun  7 20:14 somefile -> /
-rw-r--r--   1 hniksic  f2            43 Jun  7 20:15 typescript
jagor% cd s*e/
cd: no such file or directory: s*e/
jagor% cd s*e
jagor% /bin/pwd
/

That is, when symlink points to a directory, it will not be globbed if
it has a trailing /. This is especially annoying when writing
something like:
jagor% cd site-lisp/g*a/lisp
and it fails (although g*a completes uniquely by itself in site-lisp
directory), because gnus-beta is a symbolic link to gnus-5.2.10.

Ksh and bash do not seem to have this problem, whereas plain sh
behaves like zsh.

-- 
hniksic@srce.hr              |  Student of electrical engineering
hniksic@fly.cc.fer.hr        |  University of Zagreb, Croatia
------------------------------------------------------------------
* Q: What is an experienced Emacs user?
* A: A person who wishes that the terminal had pedals.



             reply	other threads:[~1996-06-07 18:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-06-07 18:21 Hrvoje Niksic [this message]
1996-06-10 19:28 ` Zoltan Hidvegi
1996-06-10 19:35   ` Hrvoje Niksic
1996-06-10 19:51   ` Zoltan Hidvegi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=kig3f47mq5e.fsf@jagor.srce.hr \
    --to=hniksic@srce.hr \
    --cc=zsh-workers@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).