Re: Bash scripting problems
From: Robert Nichols (rnichols42_at_comcast.net)
Date: 01/11/05
- Previous message: Ryan D'Baisse: "Re: yum is yuck (errors)"
- In reply to: Chadley Wilson: "Bash scripting problems"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: fedora-list@redhat.com Date: Tue, 11 Jan 2005 00:19:18 -0600
Chadley Wilson wrote:
> greetings
>
> I have this issue:
> in /root/.bashrc there is an alias which breaks my script in the following
> way:
> When I need to copy or del a file the rm -i and cp -i are preventing things
> from running smoothly.
>
> I have tried numerous tricks none work?
>
> could some-one please show me how you work around this without editing the
> basrc files?
Unless you have gone out of your way to enable them, aliases are ignored
in non-interactive shells. Here is the relevant excerpt from the bash
manpage:
Aliases are not expanded when the shell is not interactive,
unless the expand_aliases shell option is set using shopt
(see the description of shopt under SHELL BUILTIN COMMANDS
below).
-- Bob Nichols rnichols42@comcast.net -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
- Previous message: Ryan D'Baisse: "Re: yum is yuck (errors)"
- In reply to: Chadley Wilson: "Bash scripting problems"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]