Originally Posted by
ml9104
echo ~ gives /home/macro
Good. This shows that tilde expansion is operating correctly.
Originally Posted by
ml9104
echo $0 gives /bin/bash
Good. This explains why tilde expansion is operating correctly: we have normal bash behaviour.
Originally Posted by
ml9104
"doesn't work" means nothing happens. With the full path I get a screenshot in /home/macro/tmp, with ~/tmp I get... nothing. No error messages, nothing.
I'll now do a HDD search for "clip.png", perhaps that'll bring something.
Tidle expansion means that the 'scrot' program is seeing an identical argument in both cases, provided of course that we don't have any non-displayable characters involved and neither aliasing nor shell functions are involved.
So, if it is indeed the case that
Code:
scrot /home/macro/tmp/clip.png
creates the file /home/macro/tmp/clip.png and
Code:
scrot ~/tmp/clip.png
does not create the file /home/macro/tmp/clip.png then I have no further ideas, I'm afraid.
Bookmarks