Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[Bug] Strange Globing Behaviour when used with sudo



*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