3 ms·
As a self proclaimed shell advocate I am… intrigued. As a self proclaimed shell advocate, I also have a revulsion to back ticks.
by JohnMakin 2y ago
As a self proclaimed shell advocate I am… intrigued. As a self proclaimed shell advocate, I also have a revulsion to back ticks.
- justin_oaks 2y agoYes, all hail $( ) I haven't used backticks in my shell scripts in years.
- pikelet 2y agoYou can also use %x(ls some/dir), which is a syntax used in other places too, like %w[word word word] (array of word strings, notice you can choose the delimiter).
- lucasoshiro 2y ago> I also have a revulsion to back ticks. Yeah, I understand... But this is other language with a similar syntax for a similar functionality.