Quantcast
Channel: Active questions tagged fish - Stack Overflow
Viewing all articles
Browse latest Browse all 106

Is there a way to have fish-shell use GNU coreutils printf function?

$
0
0

Ran into an issue when running the following command in a fish shell:

❯ printf '%q\n''André Previn & London Symphony Orchestra'%q: invalid conversion specification

I hadn't realized at first that fish actually has their own custom printf function that behaves in largely the same way as the GNU coreutilsprintf function, but does not support the q directive like GNU coreutilsprintf does.

fish-shell docs:

https://fishshell.com/docs/current/cmds/printf.html#format-specifiers

fish-shell printf documentation

GNU coreutilsprintf docs:

https://www.gnu.org/software/coreutils/manual/html_node/printf-invocation.html#printf-invocation

GNU coreutils printf documentation

Is there a way to tell fish-shell that I want it to use the GNU coreutilsprintf function instead of their customized printf function?


Viewing all articles
Browse latest Browse all 106

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>