Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'A revised fix for the apropros long-entry problem' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A revised fix for the apropros long-entry problem
Authored by: hbp4c on Mar 23, '07 08:29:38AM
There is a set of quotation marks missing after the delimiter:
function aproposFunc() {
        width=`stty size | cut -d " " -f2`; apropos $* | cut -c1-$width;
}
alias apropos=aproposFunc


[ Reply to This | # ]
A revised fix for the apropros long-entry problem
Authored by: ThaneQ on Mar 23, '07 12:28:08PM

It looks like the html editor in the Mac OS X Hints web pages messed me up. There was a delimiter after the -d in my original text.

In the middle I have
cut -d\ -f2
In other words, a downslash and 2 spaces after the -d.

Sorry for the confusion.



[ Reply to This | # ]