Hello,
I don’t understand what > mean in the spec file.
https://build.opensuse.org/package/view_file/graphics/freeimage/freeimage.spec?expand=1
This part
> Source/FreeImage/PluginG3.cpp
> Source/FreeImageToolkit/JPEGTransform.cpp
It is the same as rm?
Thanks.
clear files which cannot be built due to dependencies on private headers
(see also unbundle patch)
It disables the G3 Fax Loader and the JPEG lossless transformations plugins
> Source/FreeImage/PluginG3.cpp
> Source/FreeImageToolkit/JPEGTransform.cpp
Read the comment.
It writes “nothing” to the files…
See > or >> for operator in bash
Thanks, I found out that it remove the inside content, similar to truncate, I thought that clear file mean the same as delete.
a > xxx = means: delete the content of xxx file and write a into that file, if the file does not exist, create it and write a as content in it.
a >> xxx = means: write a at the end of the content of file xxx, if the file does not exist, create it and write a as content in it.
stephan@linux64:~> echo '0' > xxx.txt
stephan@linux64:~> cat xxx.txt
0
stephan@linux64:~> echo '1' > xxx.txt
stephan@linux64:~> cat xxx.txt
1
stephan@linux64:~> echo '2' >> xxx.txt
stephan@linux64:~> cat xxx.txt
1
2
stephan@linux64:~> > xxx.txt
stephan@linux64:~> cat xxx.txt
stephan@linux64:~> ls -al xxx.txt
-rw-r--r-- 1 stephan users 0 2. Mai 17:46 xxx.txt
stephan@linux64:~>
Sauerland:
a > xxx = means: delete the content of xxx file and write a into that file, if the file does not exist, create it and write a as content in it.
a >> xxx = means: write a at the end of the content of file xxx, if the file does not exist, create it and write a as content in it.
Wrong. a is executed and its output replaces/is appended to file.