On Tue, 12 May 2015 20:43:45 +0200
Stephan Beal <[email protected]> wrote:

> editor=$(xdg-mime query default text/plain | sed 's/\..*//') $editor
> 

No, it does not works on the first use in the console. At the second time, only 
$editor is enough.

Some distributions have $editor environment variable predefined. In this case 
only $editor will start the default editor.
But in order to be universal && is needed.

BTW, I found shorter form, without defining variable:

$($(xdg-mime query default text/plain | sed 's/\..*//'))

-- 
http://fresh.flatassembler.net
http://asm32.info
John Found <[email protected]>
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to