Eviller even than that (Reply) [entries|reading|network|archive]
simont

[ userinfo | dreamwidth userinfo ]
[ archive | journal archive ]

[identity profile] senji.livejournal.com Fri 2003-03-07 08:00
Eviller even than that
This is in fact eviller than it looks.

I've set:
PS1='$(echo ">>>  ")'
here for simplicity and done 'set +x'
>>>  alias xxx='
 func() { $@; }
 func '
+ alias 'xxx=
 func() { $@; }
 func '
++ echo '>>>  '
>>>  xxx false
++ func false
++ false
++ echo '>>>  '
++ func false
++ false
++ echo '>>>  '
+ func false
+ false
++ echo '>>>  '
>>>  alias xxx='func() { $@; }; func '
+ alias 'xxx=func() { $@; }; func '
++ echo '>>>  '
>>>  xxx false
+ func false
+ false
++ echo '>>>  '

Link Read Comments
Reply:
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting