|
|
Problems with ls and ll investigated
the problem is that typing ls puts junk in the title bar (the output of ls).
Correct alias with no bugs?
the best illustration of what's wrong with the script
Correct alias with no bugs?
_or_ if you really want !# so that aliasses are expanded,
Correct alias with no bugs?
> if you really want !# so that aliasses are expanded,
>
> then
>
> alias postcmd echo "'^[]0;!#^G'"
>
> where the !# above is escaped with a backslash
> (don't know if geeklog will kill it though ;)
Ah, good! I had also noticed this "Faulty alias removed" problem, when you feed it an undefined variable. And indeed this seems to fix it. Provided, that is, I still include the sched part, thus:
sched +0:00 alias postcmd echo -n "'^[]0;!#^G'"(with backslash before the "!"). Otherwise, opening a new terminal gives me: Welcome to Darwin! echo: No match. Faulty alias 'postcmd' removed. [localhost:~] fz% That still leaves the ls problem open, though...
Correct alias with no bugs?
Actually this one still gives an error when the undefined variable is in quotes:
Correct alias with no bugs?
_or_ if you really want !# so that aliasses are expanded,
Correct alias with no bugs?
Works for me, no problem. At least ls is still displayed as ls, rather than the first line of the output (which is exactly what you DON'T want). I still wish it could display what directory, but hey there's always pwd and the prompt. ;)
Problems with ls and ll investigated
> printf '#! /bin/sh n echo "foo"' > test |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|