zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh User ML <zsh-users@sunsite.dk>
Subject: Re: POSIX
Date: Sun, 1 Feb 2004 17:15:35 +0000	[thread overview]
Message-ID: <1040201171535.ZM6524@candle.brasslantern.com> (raw)
In-Reply-To: <20040201154425.GD1023@eumel.yoo.local>

On Feb 1,  4:44pm, Thorsten Haude wrote:
} 
} That would mean that you should not use '.[^.]*' to find hidden files.
} Instead it is stated to use '.[!.]*', which does not work in Zsh:

It does work, if you "unsetopt banghist" -- and having banghist unset is
the default state in NON-interactive shells, so any shell script that
uses the POSIX form would work correctly.  The circumflex form is for
backwards compatibility and as a shortcut in interactive shells so that
you don't have to type the extra backslash.

} ('.[\!.]*' works though.)

And that, in fact, would NOT work in a shell script, because the history
mechanism in the interactive line editor is what removes the backslash.


      reply	other threads:[~2004-02-01 17:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-01 15:44 POSIX Thorsten Haude
2004-02-01 17:15 ` Bart Schaefer [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=1040201171535.ZM6524@candle.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-users@sunsite.dk \
    /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).