Bug#964949: Cannot open files beginning with a dash ('-')

Nicholas Guriev guriev-ns at ya.ru
Mon Sep 14 22:38:54 BST 2020


Control: severity -1 wishlist

On Mon, 13 Jul 2020 10:50:34 +0200 Enrico Zini <enrico at debian.org> wrote:
> There seems to be no way to use it to open a file whose name begins with
> a dash:
> 
> $ sh -x `which xdg-open` -test.pdf

Prepend filename with dot-slash: xdg-open ./-test.pdf

> I also tried the usual double-dash approach, which doesn't seem to be
> supported:
> 
> $ sh -x `which xdg-open` -- -test.pdf

On the other hand, it might make sense to implement a special double-dash option
to get consistent behavior between various command line utilities.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://alioth-lists.debian.net/pipermail/pkg-freedesktop-maintainers/attachments/20200915/9d431a56/attachment.sig>


More information about the Pkg-freedesktop-maintainers mailing list