[Bug 619756] New: aaa_base /etc/profile.d/alias.ash: 48: Syntax error: Bad function name
http://bugzilla.novell.com/show_bug.cgi?id=619756 http://bugzilla.novell.com/show_bug.cgi?id=619756#c0 Summary: aaa_base /etc/profile.d/alias.ash: 48: Syntax error: Bad function name Classification: openSUSE Product: openSUSE 11.3 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: werner@novell.com ReportedBy: crrodriguez@novell.com QAContact: qa@suse.de Found By: Development Blocker: No how to reproduce: 1) install dash 2) execute dash actual result: /etc/profile.d/alias.ash: 48: Syntax error: Bad function name -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=619756 http://bugzilla.novell.com/show_bug.cgi?id=619756#c1 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |coolo@novell.com, | |werner@novell.com AssignedTo|werner@novell.com |guido+opensuse.org@berhoers | |ter.name --- Comment #1 from Dr. Werner Fink <werner@novell.com> 2010-07-05 07:18:52 UTC --- IMHO the dash should accept this function name ls-l () { ls -l ${1+"$@"}; } as the ash also does it ... and dash is AFAIC a ash clone. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=619756 http://bugzilla.novell.com/show_bug.cgi?id=619756#c2 --- Comment #2 from Guido Berhörster <guido+opensuse.org@berhoerster.name> 2010-07-05 08:58:50 UTC --- According to the ash changelog it is based on a port from NetBSD 1.6.1 which is ancient. dash has been developed independently from the BSDs ash variants for quite some time and diverges significantly from the old ash. According to SUSv3/POSIX:2001 function names, just as variable names, are words consisting of "underscores, digits, and alphabetics from the portable character set", although further characters are allowable as an implementation-defined extension. So this is definetly a difference between both shells but not a bug in dash. Now, /etc/profile.d/alias.ash can really be removed altogether since both ash and dash have an alias builtin. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=619756 http://bugzilla.novell.com/show_bug.cgi?id=619756#c3 --- Comment #3 from Dr. Werner Fink <werner@novell.com> 2010-07-05 10:46:36 UTC --- Hmmm ... AFAIK the ash nor the dash are knowing about pushd nor popd. Also the echo buultin does not know about the option -n nor -e. Just changed alias.ash to use alias builtin. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=619756 http://bugzilla.novell.com/show_bug.cgi?id=619756#c4 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Dr. Werner Fink <werner@novell.com> 2010-07-05 10:47:32 UTC --- Hopefully this one becomes part of 11.3 -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=619756 http://bugzilla.novell.com/show_bug.cgi?id=619756#c5 --- Comment #5 from Guido Berhörster <guido+opensuse.org@berhoerster.name> 2010-07-05 11:32:46 UTC --- (In reply to comment #3)
Hmmm ... AFAIK the ash nor the dash are knowing about pushd nor popd. Also the echo buultin does not know about the option -n nor -e. Just changed alias.ash to use alias builtin.
Sorry, I missed that, of course stuff like pushd/popd etc. need to be implemented as functions, dash supports little more than SUSv3/POSIX:2001+XSI extensions. You should remove the comment on top of aliases.sh though, it's a bit confusing now. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com