Opened 9 years ago

Closed 9 years ago

#85 closed enhancement (fixed)

Small improvement to ShellExample trac processor

Reported by: goozbach Owned by: moo
Priority: trivial Milestone:
Component: website Version:
Keywords: ShellExample Cc:
Application: PHP Version:
Other Exts: SAPI:
Probability: Blocked By:

Description (last modified by moo)

I'm loving your ShellExample preprocessor. I found it's shell syntax just a little lacking however

attached is the new version I've created(basicly just a tweak of the regex).

My new version allows for a more flexible prompt to be displayed such as

user@host $


root@host #

it also allows for windows cmd.exe style shell prompts as well:



C:\Documents and Settings\username\> 

Attachments (1) (2.0 KB) - added by goozbach 9 years ago.
improved ShellExample preprocessor

Download all attachments as: .zip

Change History (5)

Changed 9 years ago by goozbach

improved ShellExample preprocessor

comment:1 Changed 9 years ago by moo

  • Status changed from new to assigned

good to know someone is interested in the small script i wrote. i'll check it

comment:2 Changed 9 years ago by moo

  • Description modified (diff)

comment:3 Changed 9 years ago by goozbach

found one bug, apparently it chokes on a redirect.


foo@host # cat /etc/passwd >> foo.txt

it ends up hilighting all the way to the second redirector

comment:4 Changed 9 years ago by moo

  • Resolution set to fixed
  • Status changed from assigned to closed

a modified is uploaded in the wiki page

Note: See TracTickets for help on using tickets.