On Tue, 12 May 2015 20:43:45 +0200 Stephan Beal <sgb...@googlemail.com> 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 <johnfo...@asm32.info> _______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users