On Tue, Jan 29, 2008 at 05:48:00PM +0100, Александър Л. Димитров wrote:
> to be able to handle your daily work quicker. Aliases shouldn't be used in
> shellscripts because:
>
> a) it makes them more difficult to understand (aliases often have very
> unintuitive names) for other people
Well, that
Quoth T o n g:
> On Sat, 26 Jan 2008 17:12:56 +, Tzafrir Cohen wrote:
>
> >> I'm wondering if you have read my OP or not. Read it again pls.
> >
> > Yes I have. Use functions. Don't use aliases.
>
> Despite its limitations, why one can't use aliases in scripts?
> This sounds like "Don't use
On Sat, 26 Jan 2008 17:12:56 +, Tzafrir Cohen wrote:
>> I'm wondering if you have read my OP or not. Read it again pls.
>
> Yes I have. Use functions. Don't use aliases.
Despite its limitations, why one can't use aliases in scripts?
This sounds like "Don't use #define in C" to me (again, des
On Sat, 26 Jan 2008 12:44:42 -0500, Daniel Dickinson wrote:
> ./test.sh
> Line 2 errors out. I imagine the same thing happens with his attempt
> to use his bashrc-defined functions in a script without defining them
> again in the script.
>
> IIUC he wants to know how to use already defined funct
T o n g([EMAIL PROTECTED]) is reported to have said:
> Hi,
>
> A (adv) bash alias expansion question --
> How can I use my aliases or functions in my bash script?
>
> I have the following alias and function defined in my ~/.bashrc:
>
> $ alias rd
> alias rd='rmdir'
>
> $ type dt
> dt
On Sat, 26 Jan 2008 18:03:32 +
Tzafrir Cohen <[EMAIL PROTECTED]> wrote:
> On Sat, Jan 26, 2008 at 12:44:42PM -0500, Daniel Dickinson wrote:
> > On Sat, 26 Jan 2008 17:12:56 +
> > Tzafrir Cohen <[EMAIL PROTECTED]> wrote:
> >
> > > On Thu, Jan 24, 2008 at 03:55:51AM +, T o n g wrote:
>
On Sat, Jan 26, 2008 at 12:44:42PM -0500, Daniel Dickinson wrote:
> On Sat, 26 Jan 2008 17:12:56 +
> Tzafrir Cohen <[EMAIL PROTECTED]> wrote:
>
> > On Thu, Jan 24, 2008 at 03:55:51AM +, T o n g wrote:
> >
> > > I'm wondering if you have read my OP or not. Read it again pls.
> >
> > Yes I
On Sat, 26 Jan 2008 17:12:56 +
Tzafrir Cohen <[EMAIL PROTECTED]> wrote:
> On Thu, Jan 24, 2008 at 03:55:51AM +, T o n g wrote:
>
> > I'm wondering if you have read my OP or not. Read it again pls.
>
> Yes I have. Use functions. Don't use aliases.
>
On command-line:
function dt () {
On Thu, Jan 24, 2008 at 03:55:51AM +, T o n g wrote:
> I'm wondering if you have read my OP or not. Read it again pls.
Yes I have. Use functions. Don't use aliases.
--
Tzafrir Cohen | [EMAIL PROTECTED] | VIM is
http://tzafrir.org.il || a Mutt's
[EMAIL PROTECTED]
On Thu, Jan 24, 2008 at 03:55:51AM +, T o n g wrote:
> On Wed, 23 Jan 2008 23:21:37 +, Tzafrir Cohen wrote:
>
> >> I have the following alias and function defined in my ~/.bashrc:
> >>
> >> $ alias rd
> >> alias rd='rmdir'
> >>
> >> $ type dt
> >> dt is a function
> >> dt ()
>
On Wed, 23 Jan 2008 23:21:37 +, Tzafrir Cohen wrote:
>> I have the following alias and function defined in my ~/.bashrc:
>>
>> $ alias rd
>> alias rd='rmdir'
>>
>> $ type dt
>> dt is a function
>> dt ()
>> {
>> pushd +$1
>> }
>>
>> How can I use them in my script? . .
On Wed, Jan 23, 2008 at 11:10:13PM +, T o n g wrote:
> Hi,
>
> A (adv) bash alias expansion question --
> How can I use my aliases or functions in my bash script?
>
> I have the following alias and function defined in my ~/.bashrc:
>
> $ alias rd
> alias rd='rmdir'
>
> $ type dt
>
12 matches
Mail list logo