in reply to Re: remember perl one-liners
in thread remember perl one-liners
thanks for that pointer, that sounded like it could solve the problem, but i didn't...
i think the lithist option means a multiline command like:
the problem appears if command arguments itself have newlines, an easy example is$ for i in *.pl do echo $i done $ <arrow up> $ for i in *.pl ; do echo $i; done $ shopt -s lithist $ <arrow up> $ for i in *.pl do echo $i done
so it would work if one calls perl with multiple -e args:$ echo " word "
but that's ugly, isn't it? =)$ perl -wle'print 1;' \ -e 'print 2;'
update: but i still think it should work because if i type in a multiline perl command and type arrow-up immediately after that i get all my lines like i typed them in. just storing in the history doesn't seem to work.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: remember perl one-liners
by l3v3l (Monk) on Dec 14, 2005 at 21:54 UTC |
In Section
Cool Uses for Perl