Frage

When I do...

ls$IFS-l

... I get the output I expect.

When I do...

curl$IFShttp://www.google.com

... I don't.

Am I misunderstanding internal field separators? How could I run a curl command without using any space characters?

War es hilfreich?

Lösung

You need to put the variable within curly brackets, otherwise the shell looks for a variable called "IFShttp...":

curl${IFS}http://www.google.com
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top