Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[Bug] Strange Globing Behaviour when used with sudo
- X-seq: zsh-workers 42891
- From: Bengt Brodersen <bengt.brodersen@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [Bug] Strange Globing Behaviour when used with sudo
- Date: Wed, 30 May 2018 19:11:53 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=45IozaqQDi/m0qMBjFx/VrFrRQC5uwIDw9wOQ5VJGVQ=; b=qFsZbL/jDVJXw2CbDJwj9XNlHtCbbtfA0YJX+dlq1e4XO/wibHuzFdHNJ8oqj/2wvL +1OcZuaDRokDyymOC/CRs2op4GE/0c3aH4e99CI/tlrTXI4XknrOkbrwxEZnLmDS0p+B jLXcyfdNHt19QEZe58leuL8VBmSu18zQAmSjd2nxJE2YXZWIk6bc9wcBxN0vMYX6+kZV r3W/oRec1CTkEB3QGaOEK68h1SDQeLVteHgjVU+WnxGuFx16swGcYJcCTowyt/TRVvQO KRtIwc4GqhHFHCpzbueJNkWvfGJSLGFys8zVNYGF7pF25W4x6JaLxlTrFgBctm5n+Ym3 9IBw==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
*Issue Example*
If you create a dummy file and dummy folder
```
mkdir -p folder
touch file
```
...,if you want to print only folders globing works as expected
```
echo ./*/
>> ./folder/
```
..., however if you run the same command with sudo it will also print the
file, as a folder.
```
sudo zsh -c 'echo ./*/'
>> ./file/ ./folder/
```
Why zsh behaves like this?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author