Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: newbie rm --^file question
- X-seq: zsh-users 22278
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: "zsh-users@xxxxxxx" <zsh-users@xxxxxxx>
- Subject: Re: newbie rm --^file question
- Date: Sun, 25 Dec 2016 13:10:04 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=qkUZDy51m6l3SMTKQGsP8cNki8nSuWypSTV1DnlN6AM=; b=d+V8Il3W0tApP7hWfVnQRdWGT+IPRG/eKhEFfX+fWRaBtfAvmmIJj3wrTSJeo0v+y1 6qsmeVsC8NRecaNBUQ/UBI1WNuM1QjzpHtyxJc35GT4KIW7FZS8ZimqVW5uUbf9DmJUo msdJjb/blMSqKfckmeMiXjFD7+LmdTaT+KrZ7LZc42KQskkJ12ylyj0A04nokbqf/uPF 0tLau+CeCMTCT02ddotzIWfkoHatNrdVn1vrKD/iH9eKp3NafLuNScJ+YcqIGj/j/8qE YLIxkdTY+5VzsipaIRfsJHQ2lHan+Ze0H1WqjvYoe1nQR59Wy/BF+TnkHu4LXGjl3ATS Xrcw==
- In-reply-to: <D6F66860-3528-4A5F-B5E0-7A25C1E6458E@pitt.edu>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <D6F66860-3528-4A5F-B5E0-7A25C1E6458E@pitt.edu>
On Dec 25, 7:22pm, Hoji, Akihiko wrote:
}
} setopt extended glob
If you literally did that, you should have gotten an error message; there
is no option named "extended" although there is one named "glob".
You can use underscores or hyphens between words (actually, between any
two letters) in option names, but not spaces.
setopt extendedglob
setopt extended_glob
setopt extended-glob
setopt EX_tend-ed_GLOB
} rm -rf -^file.ext.*
Is there a space missing there between the second "-" and the "^" ? Or
do the files you want to remove really have names beginning with "-" ?
} I would appreciate a poster as to what I am doing wrong.
Other than misplaced spacing, you seem to have it; see Gabor's example.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author