Syntactic Confectionery Delight | |
PerlMonks |
Re^2: Perl as interactive Shell?by LanX (Saint) |
on May 13, 2017 at 13:17 UTC ( [id://1190188]=note: print w/replies, xml ) | Need Help?? |
Thanks, but i hope you know that there already exist a wild variety of "solutions"
I once spend time adding patching the debugger to Data::Dump of the evaled line and allowing multiline commands ( talk ... sorry slides are offline ATM) > It only really implements cd and ls. So you can start the shell and type: yep, OS independence is nice ... though I'm thinking about reusing Brian's powertools > The eval which evaluates each line has strict and warnings switched off, so you can use things like barewords. Thus the following also works fine and feels slightly more shell-like: > cd bin two problems
i.e. one types > cd /home/user but display and history would automatically shows > cd '/home/user' (tab completion needs syntax awareness anyway and it'll be a service for people coming from sh)
Cheers Rolf
In Section
Meditations
|
|