Bug 478524

Summary: Konsole is not allowing me to write scripts/programs that print the standard output to a file. I'm writing a program that includes
Product: [Applications] konsole Reporter: Randy Robinson <randy.robinson>
Component: single-processAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED NOT A BUG    
Severity: normal CC: fanzhuyifan, vinca.ostravsky
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description Randy Robinson 2023-12-14 21:01:39 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1.   apt list --installed | grep "autoconf" "automake" "recutils" "gettext" "glibc" "GnuTLS" "GNU make" "iptables" "libtool" "libltdl" "libgcrypt" "libidn2" "libidn" "libmicrohttpd" "libunistring" "libjansson" "libjose" "libgmp" "libcurl" "Texinfo" "Texlive" "makeinfo" "pkgconf" "zlib" >results.txt && nano results.txt 

2.
 
3. 

OBSERVED RESULT
The results will not print to "results.txt"

EXPECTED RESULT
The script should search for the listed packages, and print the output to results.txt.  Afterward, nano" opens results.txt, so that programmers can read the output from there. I am working on a group of system diagnostic programs that will be used for personal computer maintenance.



About my Computer:

Windows: 
macOS: 
Linux/KDE Plasma:  6.5.14  
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.110.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION
Comment 1 Vincenc Elias 2023-12-14 21:54:28 UTC
Thanks for your report!
Any bug reports are appreciated but the syntax of your command is wrong. If you want search for multiple strings use: grep "string1\|string2\|string3". If you write it like this: grep "string1" "string2", it will look for string1 in file named string2. It will basically return an error.