Python Forum
option -c and semicolon not working as expected
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
option -c and semicolon not working as expected
#2
(Aug-11-2022, 10:04 PM)Skaperen Wrote: can someone tell me what i should be using for this case that the 1st example shows?
Instead of the -c option, you can use a here document in bash
Output:
$ python <<EOF > for i in range(4): > print(i) > EOF 0 1 2 3 $
Reply


Messages In This Thread
RE: option -c and semicolon not working as expected - by Gribouillis - Aug-12-2022, 05:56 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020