3 ms·
I always used "-e ^" the same way you're using a null string, to show all lines of the files, each prefixed with the path and filename. Are they equivalent or i
by addingnumbers 5y ago
I always used "-e ^" the same way you're using a null string, to show all lines of the files, each prefixed with the path and filename. Are they equivalent or is there a caveat I should watch out for?
- likpok 5y agoZsh (and possibly other shells?) will expand a raw ^ into filenames. '' is a little shorter than '^' if you have to quote it.
- jolmg 5y ago> and possibly other shells? Years ago--I don't if it's still the case--but the fish shell used ^ to redirect stderr. EDIT: I remembered right: https://web.archive.org/web/20111111003423/http://fishshell.com/user_doc/index.html#syntax https://web.archive.org/web/20111111003423/http://fishshell.... but it seems it's no longer the case: fish> echo foo ^ bar foo ^ bar https://fishshell.com/docs/current/tutorial.html#pipes-and-redirections https://fishshell.com/docs/current/tutorial.html#pipes-and-r...