Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when using ; as delimiter in s command #12

Closed
aureliojargas opened this issue Apr 24, 2014 · 1 comment
Closed

Error when using ; as delimiter in s command #12

aureliojargas opened this issue Apr 24, 2014 · 1 comment
Labels
Milestone

Comments

@aureliojargas
Copy link
Owner

aureliojargas commented Apr 24, 2014

$ sedsed -e 's;foo;bar;'
Traceback (most recent call last):
  File "/usr/bin/sedsed", line 1346, in <module>
    cmd = SedCommand(possiblecmd)
  File "/usr/bin/sedsed", line 633, in __init__
    self.do_it_all()
  File "/usr/bin/sedsed", line 690, in do_it_all
    self.delimiter = self.junk[0]
IndexError: string index out of range
$

When fixed, remove the exception in test/gnused/run.

@aureliojargas
Copy link
Owner Author

Fixed by the new sedparse parser, see #52.

$ ./sedsed.py -e 's;foo;bar;'
s;foo;bar;
$

aureliojargas added a commit that referenced this issue Nov 16, 2019
This is fixed in the new sedparse parser.
@aureliojargas aureliojargas added this to the v2.0 milestone Nov 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant