Philip Ganchev wrote:
> Maybe
> something like this would work:
>
> dmenu_path | dmenu > dmenu_file
> . dmenu_file
>
> And what is wrong with using "eval $var" here??
>
> set var (dmenu_path | dmenu); eval $var
Those both evaluate the value of "var" (and any arguments, if you were
passing any
On Fri, Jun 6, 2008 at 7:51 PM, Martin Bähr
<[EMAIL PROTECTED]> wrote:
> On Fri, Jun 06, 2008 at 07:08:26PM -0400, Philip Ganchev wrote:
>> On Fri, Jun 6, 2008 at 12:50 AM, Martin Bähr
>> <[EMAIL PROTECTED]> wrote:
>> > On Thu, Jun 05, 2008 at 05:54:05PM -0400, Philip Ganchev wrote:
>> >> On 6/2/08
On Fri, Jun 06, 2008 at 07:08:26PM -0400, Philip Ganchev wrote:
> On Fri, Jun 6, 2008 at 12:50 AM, Martin Bähr
> <[EMAIL PROTECTED]> wrote:
> > On Thu, Jun 05, 2008 at 05:54:05PM -0400, Philip Ganchev wrote:
> >> On 6/2/08, Piotr Husiatyński <[EMAIL PROTECTED]> wrote:
> >> > var=$(dmenu_path |
On Fri, Jun 6, 2008 at 12:50 AM, Martin Bähr
<[EMAIL PROTECTED]> wrote:
> On Thu, Jun 05, 2008 at 05:54:05PM -0400, Philip Ganchev wrote:
>> On 6/2/08, Piotr Husiatyński <[EMAIL PROTECTED]> wrote:
>> > var=$(dmenu_path | dmenu); exec $var
>> function temp_func; dmenu_path | dmenu; end
>> temp_f
On Thu, Jun 05, 2008 at 05:54:05PM -0400, Philip Ganchev wrote:
> On 6/2/08, Piotr Husiatyński <[EMAIL PROTECTED]> wrote:
> > var=$(dmenu_path | dmenu); exec $var
> function temp_func; dmenu_path | dmenu; end
> temp_func
> functions -e temp_func
that function will run dmenu_path | dmenu every
On Thu, Jun 05, 2008 at 05:54:05PM -0400, Philip Ganchev wrote:
> If I recall correctly, the reason
> for disallowing execution of variables is that it makes syntax
> checking impossible.
that explaind why
> $command
fails but it doesn't explain the failure of
> exec $command
there are other com
On 6/2/08, Piotr Husiatyński <[EMAIL PROTECTED]> wrote:
[...]
> var=$(dmenu_path | dmenu); exec $var
[...]
That can be translated as:
function temp_func; dmenu_path | dmenu; end
temp_func
functions -e temp_func
More verbose, but perhaps clearer. If I recall correctly, the reason
for disallo
on the other hand, I would be happy if `command $var` (including `exec
command $var args...`) was allowed. Because that makes clear that
you're not going to let arbitrary vars call into the shell internal
stuff by accident like that (or is there ever a real use case for that??
crazy shell scri
well, there's `eval`, but it doesn't do what you want: it doesn't exec
and if you gave it any arguments with $ in them, it would interpolate
them again. `exec eval ...` gives "fish: Unknown command “eval”". Why
may not variables be used as commands? Did the maker of this rule
forget that it m
hi,
I'm just switching to fish from bash and rewriting my configuration files. One
of the command is
var=$(dmenu_path | dmenu); exec $var
so I rewrite it to
set var (dmenu_path | dmenu); exec $var
but it returns me an error:
~> set var (dmenu_path | dmenu); exec $var
fish: Va
10 matches
Mail list logo