trash
3
@ksynwa
link
fedilink
1
edit-2
4 mesi

I think you are better off setting something like $MYZSHRC and using that.

What does ${=EDITOR} do? Asking about the equals sign.

EDIT:

       ${=spec}
              Perform word splitting using the rules for SH_WORD_SPLIT during
              the evaluation of spec, but regardless of whether the parameter
              appears in double quotes; if the `=' is doubled, turn it off.
              This forces parameter expansions to be split into separate words
              before substitution, using IFS as a delimiter.  This is done by
              default in most other shells.

              Note that splitting is applied to word in the assignment forms
              of spec before the assignment to name is performed.  This
              affects the result of array assignments with the A flag.

You should just use $EDITOR there instead. No need to split words.

@ajr
creator
link
fedilink
1
edit-2
3 mesi

deleted by creator

@ksynwa
link
fedilink
24 mesi

I thought that if you use single quotes then dollar variables are not expanded

@ajr
creator
link
fedilink
2
edit-2
3 mesi

deleted by creator

@ajr
creator
link
fedilink
0
edit-2
3 mesi

deleted by creator

A place to learn programming.
Share free resources here.

Ask questions on heapoverflow.ml

Python docs (tutorial)
Javascript docs (node)
Hard challenges (Project Euler)

  • 0 users online
  • 2 users / day
  • 2 users / week
  • 2 users / month
  • 5 users / 6 months
  • 24 subscribers
  • 9 Posts
  • 9 Comments
  • Modlog