[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why doesn't this do what I expect?
From: |
Chris Green |
Subject: |
Re: Why doesn't this do what I expect? |
Date: |
Thu, 10 Nov 2022 21:41:42 +0000 |
On Thu, Nov 10, 2022 at 03:50:23PM -0500, Paul Fox wrote:
> chris wrote:
> > On Thu, Nov 10, 2022 at 08:58:14PM +0100, Gary Jennejohn wrote:
> > > vile `cat ^Xe .zot` where .zot contains .bashrc and vile opens .bashrc.
> > >
> > > ^X = ctrl-V+ctrl-X
> > >
> > Sadly this won't help me as I'm trying to run this from a panel
> > launcher button in [x]ubuntu, thus I can't use any bash, all I can
> > have is a plain text command line.
>
> Why can't you just do:
> bash -c "vile $(cat .zot)"
>
That's exactly what I did try first time around but it didn't work.
> Where .zot contains the filename you want to edit? Why do you need
> to use "-ce"?
>
I guess bash -c "vile $(cat .zot)" might work.
> Okay, I see you said "plain text command line". In that case, I
> suggest you create a tiny script that does what you need, and call
> that from the launcher config.
>
... and that's exactly what I have done which works. I was just
hoping I might be able to get rid of the (admittedly pretty trivial)
script.
--
Chris Green
Re: Why doesn't this do what I expect?, Gary Jennejohn, 2022/11/11