Skip to content

A simple way to concat-and-assign (like foo+=bar) #1326

@lloeki

Description

@lloeki

Manipulating string ins fish basically requires

A list of things that bash/zsh support that makes everyone life's easier and faster:

  • concat adn assign operator: foo+="bar"
  • pattern in string tests: [ $haystack = *needle* ] (not contains)
  • prefix and suffix (longest and shortest) pattern matching and replacement (reference)

Those largely make calls to sed/grep/awk/basename/dirname useless, thus improving performance a lot in many cases, e.g #1325.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions