zsh-users
 help / color / mirror / code / Atom feed
From: "Zefram" <zefram@tao.co.uk>
To: monnier+lists/zsh/users/news/@TEQUILA.SYSTEMSZ.CS.YALE.EDU
	(Stefan Monnier)
Cc: zsh-users@math.gatech.edu
Subject: Re: globbing and parameter expansion in 3.0.5
Date: Tue, 1 Sep 1998 10:19:10 +0100 (BST)	[thread overview]
Message-ID: <199809010919.KAA04668@diamond.tao.co.uk> (raw)
In-Reply-To: <5l3eadgn7p.fsf@tequila.systemsz.cs.yale.edu> from "Stefan Monnier" at Aug 31, 98 11:55:38 am

Stefan Monnier wrote:
>/-0% bash -c 'toto="*"; echo $toto'
>System.map amd bin boot cdrom compressed core depots dev dos etc floppy home homes inittab kernel lib lost+found misc mnt net nfs proc root rpm sbin scratch softs tmp usr var windows wine
>/-0% zsh -c 'toto="*"; echo $toto'
>*

% zsh -c 'toto="*"; echo $toto'
*
% zsh -c 'toto="*"; echo $~toto'
bin data etc export man tmp usr
% ARGV0=sh zsh -c 'toto="*"; echo $toto'
bin data etc export man tmp usr
% ARGV0=bash zsh -c 'toto="*"; echo $toto'
bin data etc export man tmp usr

>Which one is "correct" ?

Both.  See GLOB_SUBST in zshoptions(1).

-zefram


      reply	other threads:[~1998-09-01  9:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-08-31 15:55 Stefan Monnier
1998-09-01  9:19 ` Zefram [this message]

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=199809010919.KAA04668@diamond.tao.co.uk \
    --to=zefram@tao.co.uk \
    --cc=monnier+lists/zsh/users/news/@TEQUILA.SYSTEMSZ.CS.YALE.EDU \
    --cc=zsh-users@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).